Skip to content

Commit 1be2046

Browse files
committed
Fix ternary formatting
1 parent 9004f84 commit 1be2046

File tree

1 file changed

+22
-25
lines changed

1 file changed

+22
-25
lines changed

apps/builder/app/builder/features/topbar/publish.tsx

+22-25
Original file line numberDiff line numberDiff line change
@@ -665,31 +665,28 @@ const Content = (props: {
665665
</Link>
666666
</Flex>
667667
</PanelBanner>
668-
) : (
669-
canAddDomain === false && (
670-
<PanelBanner>
671-
<Text variant="regularBold">Free domains limit reached</Text>
672-
<Text variant="regular">
673-
You have reached the limit of {maxDomainsAllowedPerUser} custom
674-
domains on your account.{" "}
675-
<Text variant="regularBold" inline>
676-
Upgrade to a Pro account
677-
</Text>{" "}
678-
to add unlimited domains and publish to each domain
679-
individually.
680-
</Text>
681-
<Link
682-
className={buttonStyle({ color: "gradient" })}
683-
color="contrast"
684-
underline="none"
685-
href="https://webstudio.is/pricing"
686-
target="_blank"
687-
>
688-
Upgrade
689-
</Link>
690-
</PanelBanner>
691-
)
692-
)}
668+
) : canAddDomain === false ? (
669+
<PanelBanner>
670+
<Text variant="regularBold">Free domains limit reached</Text>
671+
<Text variant="regular">
672+
You have reached the limit of {maxDomainsAllowedPerUser} custom
673+
domains on your account.{" "}
674+
<Text variant="regularBold" inline>
675+
Upgrade to a Pro account
676+
</Text>{" "}
677+
to add unlimited domains and publish to each domain individually.
678+
</Text>
679+
<Link
680+
className={buttonStyle({ color: "gradient" })}
681+
color="contrast"
682+
underline="none"
683+
href="https://webstudio.is/pricing"
684+
target="_blank"
685+
>
686+
Upgrade
687+
</Link>
688+
</PanelBanner>
689+
) : null}
693690
<RadioGroup name="publishDomain">
694691
<ChangeProjectDomain
695692
refresh={refreshProject}

0 commit comments

Comments
 (0)