Merge branch 'main' of github.com:formbricks/formbricks

This commit is contained in:
Matthias Nannt
2023-01-20 12:25:49 +01:00
3 changed files with 8 additions and 4 deletions

View File

@@ -35,6 +35,9 @@ export default function IconRadio({ element, control, onSubmit, disabled }: Icon
<RadioGroup.Label className="pb-6 text-center text-lg font-bold text-slate-600 dark:text-slate-300 sm:text-xl md:text-2xl">
{element.label}
</RadioGroup.Label>
<div className="mx-auto -mt-3 mb-3 text-center text-sm text-slate-500 dark:text-slate-300 md:max-w-lg">
{element.help}
</div>
<div
className={clsx(

View File

@@ -23,6 +23,7 @@ export interface SurveyElement {
id: string;
name?: string;
label?: string;
help?: string;
type: "radio" | "text" | "checkbox" | "html";
options?: SurveyOption[];
component: React.FC<any>;

View File

@@ -7,7 +7,6 @@ import Textarea from "@/components/engine/Textarea";
import ThankYouHeading from "@/components/engine/ThankYouHeading";
import ThankYouPlans from "@/components/engine/ThankYouPlans";
import LayoutWaitlist from "@/components/shared/LayoutWaitlist";
import { NoSymbolIcon, UserIcon } from "@heroicons/react/24/outline";
import {
OnboardingIcon,
PMFIcon,
@@ -251,16 +250,17 @@ const WaitlistPage = () => (
{
id: "goal",
type: "radio",
label: "What are you here for?",
label: "Want to become a beta user?",
help: "Answer 3 open-ended questions and get 50% off in the first year.",
name: "goal",
options: [
{
label: "Just notify me on launch",
label: "No, just notify me on launch",
value: "justNotify",
frontend: { icon: BellIcon },
},
{
label: "Become a beta user",
label: "Yes, take the survey",
value: "becomeBetaUser",
frontend: { icon: UserCommentIcon },
},