From aeec821b7bd08415c273482a3d8afeaa8af6b8f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20H=C3=B6benreich?= <64426524+jonas-hoebenreich@users.noreply.github.com> Date: Fri, 11 Oct 2024 12:11:45 +0200 Subject: [PATCH] fix: wrong tooltip in survey copy form (#3341) Co-authored-by: Matthias Nannt --- .../surveys/components/CopySurveyForm.tsx | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/apps/web/app/(app)/environments/[environmentId]/surveys/components/CopySurveyForm.tsx b/apps/web/app/(app)/environments/[environmentId]/surveys/components/CopySurveyForm.tsx index 928c9dc4da..12ed4b64b6 100644 --- a/apps/web/app/(app)/environments/[environmentId]/surveys/components/CopySurveyForm.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/surveys/components/CopySurveyForm.tsx @@ -1,8 +1,8 @@ "use client"; import { copySurveyToOtherEnvironmentAction } from "@/app/(app)/environments/[environmentId]/surveys/actions"; -import { TSurvey } from "@/app/(app)/environments/[environmentId]/surveys/types/surveys"; import { + TSurvey, TSurveyCopyFormData, ZSurveyCopyFormValidation, } from "@/app/(app)/environments/[environmentId]/surveys/types/surveys"; @@ -14,7 +14,6 @@ import { Button } from "@formbricks/ui/components/Button"; import { Checkbox } from "@formbricks/ui/components/Checkbox"; import { FormControl, FormField, FormItem, FormProvider } from "@formbricks/ui/components/Form"; import { Label } from "@formbricks/ui/components/Label"; -import { TooltipRenderer } from "@formbricks/ui/components/Tooltip"; export const CopySurveyForm = ({ defaultProducts, @@ -76,17 +75,9 @@ export const CopySurveyForm = ({ return (
- - This product is not compatible with the survey type. Please select a different - product. - - }> -
-

{product?.name}

-
-
+
+

{product?.name}

+
{product?.environments.map((environment) => {