diff --git a/apps/web/app/environments/[environmentId]/surveys/[surveyId]/edit/ResponseOptionsCard.tsx b/apps/web/app/environments/[environmentId]/surveys/[surveyId]/edit/ResponseOptionsCard.tsx index 0a87863d07..252327ca9a 100644 --- a/apps/web/app/environments/[environmentId]/surveys/[surveyId]/edit/ResponseOptionsCard.tsx +++ b/apps/web/app/environments/[environmentId]/surveys/[surveyId]/edit/ResponseOptionsCard.tsx @@ -112,29 +112,31 @@ export default function ResponseOptionsCard({ localSurvey, setLocalSurvey }: Res )} -
-
- - + {localSurvey.type === "link" && ( +
+
+ + +
+
+ {redirectToggle && ( + handleRedirectUrlChange(e.target.value)} + /> + )} +
-
- {redirectToggle && ( - handleRedirectUrlChange(e.target.value)} - /> - )} -
-
+ )}
diff --git a/apps/web/app/environments/[environmentId]/surveys/[surveyId]/edit/AudienceView.tsx b/apps/web/app/environments/[environmentId]/surveys/[surveyId]/edit/SettingsView.tsx similarity index 79% rename from apps/web/app/environments/[environmentId]/surveys/[surveyId]/edit/AudienceView.tsx rename to apps/web/app/environments/[environmentId]/surveys/[surveyId]/edit/SettingsView.tsx index 4a5759ab0b..9d96432cf1 100644 --- a/apps/web/app/environments/[environmentId]/surveys/[surveyId]/edit/AudienceView.tsx +++ b/apps/web/app/environments/[environmentId]/surveys/[surveyId]/edit/SettingsView.tsx @@ -5,13 +5,13 @@ import ResponseOptionsCard from "./ResponseOptionsCard"; import WhenToSendCard from "./WhenToSendCard"; import WhoToSendCard from "./WhoToSendCard"; -interface AudienceViewProps { +interface SettingsViewProps { environmentId: string; localSurvey: Survey; setLocalSurvey: (survey: Survey) => void; } -export default function AudienceView({ environmentId, localSurvey, setLocalSurvey }: AudienceViewProps) { +export default function SettingsView({ environmentId, localSurvey, setLocalSurvey }: SettingsViewProps) { return (
- {localSurvey.type === "link" && ( - - )} + ) : ( -