fix: project styling settings issues (#6488)

This commit is contained in:
Dhruwang Jariwala
2025-09-09 14:03:28 +05:30
committed by GitHub
parent 764b8ec260
commit fdba260301
6 changed files with 6 additions and 8 deletions
@@ -29,7 +29,7 @@ import { useCallback, useState } from "react";
import { SubmitHandler, UseFormReturn, useForm } from "react-hook-form";
import toast from "react-hot-toast";
import { TProjectStyling, ZProjectStyling } from "@formbricks/types/project";
import { TSurvey, TSurveyStyling, TSurveyType } from "@formbricks/types/surveys/types";
import { TSurveyStyling, TSurveyType } from "@formbricks/types/surveys/types";
interface ThemeStylingProps {
project: Project;
@@ -190,7 +190,7 @@ export const ThemeStyling = ({
<div className="relative w-1/2 rounded-lg bg-slate-100 pt-4">
<div className="sticky top-4 mb-4 h-[600px]">
<ThemeStylingPreviewSurvey
survey={previewSurvey(project.name, t) as TSurvey}
survey={previewSurvey(project.name, t)}
project={{
...project,
styling: form.watch(),