From fdba260301285af7ae301bb4f27d78180a1ced8e Mon Sep 17 00:00:00 2001 From: Dhruwang Jariwala <67850763+Dhruwang@users.noreply.github.com> Date: Tue, 9 Sep 2025 14:03:28 +0530 Subject: [PATCH] fix: project styling settings issues (#6488) --- apps/web/lib/styling/constants.ts | 4 ---- .../projects/settings/look/components/theme-styling.tsx | 4 ++-- .../modules/survey/editor/components/animated-survey-bg.tsx | 1 + apps/web/modules/survey/editor/components/color-survey-bg.tsx | 1 + apps/web/modules/ui/components/media-background/index.tsx | 2 +- apps/web/modules/ui/components/preview-survey/index.tsx | 2 +- 6 files changed, 6 insertions(+), 8 deletions(-) diff --git a/apps/web/lib/styling/constants.ts b/apps/web/lib/styling/constants.ts index 0d43306047..3986e18339 100644 --- a/apps/web/lib/styling/constants.ts +++ b/apps/web/lib/styling/constants.ts @@ -34,10 +34,6 @@ export const defaultStyling: TProjectStyling = { isLogoHidden: false, highlightBorderColor: undefined, isDarkModeEnabled: false, - background: { - bg: "#fff", - bgType: "color", - }, roundness: 8, cardArrangement: { linkSurveys: "straight", diff --git a/apps/web/modules/projects/settings/look/components/theme-styling.tsx b/apps/web/modules/projects/settings/look/components/theme-styling.tsx index f387cae82b..133f532a20 100644 --- a/apps/web/modules/projects/settings/look/components/theme-styling.tsx +++ b/apps/web/modules/projects/settings/look/components/theme-styling.tsx @@ -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 = ({