mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-04 10:30:00 -06:00
chore: removing unneeded code after self review
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user