Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
liyiy committed Nov 15, 2023
1 parent fe283aa commit 2731116
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
9 changes: 1 addition & 8 deletions frontend/src/scenes/notebooks/Nodes/NotebookNodeSurvey.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createPostHogWidgetNode } from 'scenes/notebooks/Nodes/NodeWrapper'
import { FeatureFlagBasicType, NotebookNodeType, Survey, SurveyQuestionType } from '~/types'
import { FeatureFlagBasicType, NotebookNodeType, Survey } from '~/types'
import { BindLogic, useActions, useValues } from 'kea'
import { IconSurveys } from 'lib/lemon-ui/icons'
import { LemonDivider } from '@posthog/lemon-ui'
Expand Down Expand Up @@ -81,13 +81,6 @@ const Component = ({ attributes }: NotebookNodeProps<NotebookNodeSurveyAttribute
type={survey.questions[0].type}
surveyQuestionItem={survey.questions[0]}
appearance={survey.appearance || defaultSurveyAppearance}
question={survey.questions[0].question}
description={survey.questions[0].description}
link={
survey.questions[0].type === SurveyQuestionType.Link
? survey.questions[0].link
: undefined
}
/>
</div>
</div>
Expand Down
9 changes: 1 addition & 8 deletions frontend/src/scenes/surveys/SurveyFormAppearance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { LemonSelect } from '@posthog/lemon-ui'
import { SurveyAppearance, SurveyThankYou } from './SurveyAppearance'
import { SurveyAPIEditor } from './SurveyAPIEditor'
import { NewSurvey, defaultSurveyAppearance } from './constants'
import { LinkSurveyQuestion, Survey, SurveyQuestionType, SurveyType } from '~/types'
import { Survey, SurveyType } from '~/types'

interface SurveyFormAppearanceProps {
activePreview: number
Expand All @@ -25,13 +25,6 @@ export function SurveyFormAppearance({
<SurveyAppearance
type={survey.questions[activePreview].type}
surveyQuestionItem={survey.questions[activePreview]}
question={survey.questions[activePreview].question}
description={survey.questions[activePreview].description}
link={
survey.questions[activePreview].type === SurveyQuestionType.Link
? (survey.questions[activePreview] as LinkSurveyQuestion).link
: undefined
}
appearance={{
...(survey.appearance || defaultSurveyAppearance),
...(survey.questions.length > 1 ? { submitButtonText: 'Next' } : null),
Expand Down
1 change: 0 additions & 1 deletion frontend/src/scenes/surveys/SurveyTemplates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export function SurveyTemplates(): JSX.Element {
<SurveyAppearance
key={idx}
type={template.questions[0].type}
question={template.questions[0].question}
appearance={{
...defaultSurveyAppearance,
whiteLabel: true,
Expand Down

0 comments on commit 2731116

Please sign in to comment.