fix: wording on look & feel page (#1632)

This commit is contained in:
Dhruwang Jariwala
2023-11-17 15:16:43 +05:30
committed by GitHub
parent ff87be717c
commit 4baea07471

View File

@@ -27,6 +27,11 @@ export function EditFormbricksBranding({
);
const [updatingBranding, setUpdatingBranding] = useState(false);
const getTextFromType = (type) => {
if (type === "linkSurvey") return "Link Surveys";
if (type === "inAppSurvey") return "In App Surveys";
};
const toggleBranding = async () => {
try {
setUpdatingBranding(true);
@@ -52,8 +57,8 @@ export function EditFormbricksBranding({
<div className="mb-4">
<Alert>
<AlertDescription>
To remove the Formbricks branding from the <span className="font-semibold">{type} surveys</span>
, please{" "}
To remove the Formbricks branding from the&nbsp;
<span className="font-semibold">{getTextFromType(type)}</span>, please&nbsp;
{type === "linkSurvey" ? (
<span className="underline">
<Link href={`/environments/${environmentId}/settings/billing`}>upgrade your plan.</Link>