diff --git a/apps/web/app/(app)/(survey-editor)/environments/[environmentId]/surveys/templates/components/TemplateContainer.tsx b/apps/web/app/(app)/(survey-editor)/environments/[environmentId]/surveys/templates/components/TemplateContainer.tsx index a98cdbbc69..9433e8b2d7 100644 --- a/apps/web/app/(app)/(survey-editor)/environments/[environmentId]/surveys/templates/components/TemplateContainer.tsx +++ b/apps/web/app/(app)/(survey-editor)/environments/[environmentId]/surveys/templates/components/TemplateContainer.tsx @@ -4,8 +4,8 @@ import { MenuBar } from "@/app/(app)/(survey-editor)/environments/[environmentId import { useState } from "react"; import { customSurvey } from "@formbricks/lib/templates"; import type { TEnvironment } from "@formbricks/types/environment"; -import type { TProduct } from "@formbricks/types/product"; -import type { TTemplate } from "@formbricks/types/templates"; +import type { TProduct, TProductConfigChannel, TProductConfigIndustry } from "@formbricks/types/product"; +import type { TTemplate, TTemplateRole } from "@formbricks/types/templates"; import { TUser } from "@formbricks/types/user"; import { PreviewSurvey } from "@formbricks/ui/PreviewSurvey"; import { SearchBox } from "@formbricks/ui/SearchBox"; @@ -17,13 +17,14 @@ type TemplateContainerWithPreviewProps = { product: TProduct; environment: TEnvironment; user: TUser; + prefilledFilters: (TProductConfigChannel | TProductConfigIndustry | TTemplateRole | null)[]; }; export const TemplateContainerWithPreview = ({ - environmentId, product, environment, user, + prefilledFilters, }: TemplateContainerWithPreviewProps) => { const initialTemplate = customSurvey; const [activeTemplate, setActiveTemplate] = useState(initialTemplate); @@ -35,7 +36,7 @@ export const TemplateContainerWithPreview = ({
-
+

Create a new survey