chore: removing unneeded code after self review

This commit is contained in:
TheodorTomas
2026-02-04 23:39:29 +08:00
parent 7a6ac93a7f
commit d389037ae9
3 changed files with 4 additions and 7 deletions

View File

@@ -1,6 +1,5 @@
import { Project } from "@prisma/client";
import { SettingsCard } from "@/app/(app)/environments/[environmentId]/settings/components/SettingsCard";
import { cn } from "@/lib/cn";
import { IS_FORMBRICKS_CLOUD } from "@/lib/constants";
import { getTranslate } from "@/lingodotdev/server";
import { EditBranding } from "@/modules/ee/whitelabel/remove-branding/components/edit-branding";
@@ -40,7 +39,7 @@ export const BrandingSettingsCard = async ({
return (
<SettingsCard
title={t("environments.workspace.look.formbricks_branding")}
className={cn(!isReadOnly && "max-w-7xl")}
className={"max-w-7xl"}
description={t("environments.workspace.look.formbricks_branding_settings_description")}>
{canRemoveBranding ? (
<div className="space-y-4">

View File

@@ -56,7 +56,7 @@ export const ProjectLookSettingsPage = async (props: { params: Promise<{ environ
</SettingsCard>
<SettingsCard
title={t("common.logo")}
className={cn(!isReadOnly && "max-w-7xl")}
className={"max-w-7xl"}
description={t("environments.workspace.look.logo_settings_description")}>
<EditLogo
project={project}
@@ -67,7 +67,7 @@ export const ProjectLookSettingsPage = async (props: { params: Promise<{ environ
</SettingsCard>
<SettingsCard
title={t("environments.workspace.look.app_survey_placement")}
className={cn(!isReadOnly && "max-w-7xl")}
className={"max-w-7xl"}
description={t("environments.workspace.look.app_survey_placement_settings_description")}>
<EditPlacementForm project={project} environmentId={params.environmentId} isReadOnly={isReadOnly} />
</SettingsCard>

View File

@@ -39,9 +39,7 @@ export const SurveyInline = (props: Omit<SurveyContainerProps, "containerId">) =
// Set loading flag immediately to prevent concurrent loads
isLoadingScript = true;
try {
const scriptUrl = props.appUrl
? `${props.appUrl}/js/surveys.umd.cjs?v=${Date.now()}`
: `/js/surveys.umd.cjs?v=${Date.now()}`;
const scriptUrl = props.appUrl ? `${props.appUrl}/js/surveys.umd.cjs` : "/js/surveys.umd.cjs";
const response = await fetch(scriptUrl);
if (!response.ok) {