-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Survey's placeholder customization not showing up #27089
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,7 @@ import './EditSurvey.scss' | |
|
||
import { DndContext } from '@dnd-kit/core' | ||
import { SortableContext, verticalListSortingStrategy } from '@dnd-kit/sortable' | ||
import { IconInfo } from '@posthog/icons' | ||
import { IconLock, IconPlus, IconTrash } from '@posthog/icons' | ||
import { IconInfo, IconLock, IconPlus, IconTrash } from '@posthog/icons' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. did you intend to add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i didn't intend to touch this! but I think what happened here is that my editor combined those two lines when formatting. if you see, ItemInfo was always there, and it's used in the file, but before we were importing it in a separate line |
||
import { | ||
LemonButton, | ||
LemonCalendarSelect, | ||
|
@@ -538,12 +537,12 @@ export default function SurveyEdit(): JSX.Element { | |
appearance={value || defaultSurveyAppearance} | ||
hasBranchingLogic={hasBranchingLogic} | ||
deleteBranchingLogic={deleteBranchingLogic} | ||
customizeRatingButtons={ | ||
survey.questions[0].type === SurveyQuestionType.Rating | ||
} | ||
customizePlaceholderText={ | ||
survey.questions[0].type === SurveyQuestionType.Open | ||
} | ||
customizeRatingButtons={survey.questions.some( | ||
(question) => question.type === SurveyQuestionType.Rating | ||
)} | ||
customizePlaceholderText={survey.questions.some( | ||
(question) => question.type === SurveyQuestionType.Open | ||
)} | ||
onAppearanceChange={(appearance) => { | ||
onChange(appearance) | ||
}} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀