mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-29 19:41:32 -05:00
tweaks
This commit is contained in:
+1
-1
@@ -237,7 +237,7 @@ export default function MultipleChoiceMultiForm({
|
||||
{question.choices &&
|
||||
question.choices.map((choice, choiceIdx) => (
|
||||
<div key={choiceIdx} className="inline-flex w-full items-center">
|
||||
<div className="w-full space-x-2">
|
||||
<div className="flex w-full space-x-2">
|
||||
<QuestionFormInput
|
||||
key={choice.id}
|
||||
id={`choice-${choiceIdx}`}
|
||||
|
||||
+2
-3
@@ -17,7 +17,6 @@ import {
|
||||
TSurveyRatingQuestion,
|
||||
TSurveyThankYouCard,
|
||||
TSurveyWelcomeCard,
|
||||
ZSurvey,
|
||||
ZSurveyCTAQuestion,
|
||||
ZSurveyCalQuestion,
|
||||
ZSurveyConsentQuestion,
|
||||
@@ -260,12 +259,12 @@ export const translateSurvey = (
|
||||
const translatedWelcomeCard = translateWelcomeCard(survey.welcomeCard, languages);
|
||||
const translatedThankYouCard = translateThankYouCard(survey.thankYouCard, languages);
|
||||
const translatedSurvey = structuredClone(survey);
|
||||
return ZSurvey.parse({
|
||||
return {
|
||||
...translatedSurvey,
|
||||
questions: translatedQuestions,
|
||||
welcomeCard: translatedWelcomeCard,
|
||||
thankYouCard: translatedThankYouCard,
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
export const hasStringSubheaders = (questions: TSurveyQuestions): boolean => {
|
||||
|
||||
@@ -16,7 +16,6 @@ import {
|
||||
TSurveyRatingQuestion,
|
||||
TSurveyThankYouCard,
|
||||
TSurveyWelcomeCard,
|
||||
ZSurvey,
|
||||
ZSurveyCTAQuestion,
|
||||
ZSurveyCalQuestion,
|
||||
ZSurveyConsentQuestion,
|
||||
@@ -311,10 +310,10 @@ export const translateSurvey = (
|
||||
const translatedWelcomeCard = translateWelcomeCard(survey.welcomeCard, languages);
|
||||
const translatedThankYouCard = translateThankYouCard(survey.thankYouCard, languages);
|
||||
const translatedSurvey = structuredClone(survey);
|
||||
return ZSurvey.parse({
|
||||
return {
|
||||
...translatedSurvey,
|
||||
questions: translatedQuestions,
|
||||
welcomeCard: translatedWelcomeCard,
|
||||
thankYouCard: translatedThankYouCard,
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user