Skip to content

Commit 877ec72

Browse files
committed
Disable sharing for templates
1 parent 6eddfd9 commit 877ec72

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/components/EditorHeader/ControlPanel.jsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,15 +1363,17 @@ export default function ControlPanel({
13631363
{layout.header && (
13641364
<div className="flex justify-between items-center me-7">
13651365
{header()}
1366-
<Button
1367-
type="primary"
1368-
className="text-base me-2 pe-6 ps-5 py-[18px] rounded-md"
1369-
size="default"
1370-
icon={<IconShareStroked />}
1371-
onClick={() => setModal(MODAL.SHARE)}
1372-
>
1373-
{t("share")}
1374-
</Button>
1366+
{window.name.split(" ")[0] !== "t" && (
1367+
<Button
1368+
type="primary"
1369+
className="text-base me-2 pe-6 ps-5 py-[18px] rounded-md"
1370+
size="default"
1371+
icon={<IconShareStroked />}
1372+
onClick={() => setModal(MODAL.SHARE)}
1373+
>
1374+
{t("share")}
1375+
</Button>
1376+
)}
13751377
</div>
13761378
)}
13771379
{layout.toolbar && toolbar()}

0 commit comments

Comments
 (0)