Skip to content

Commit 4f7c5e3

Browse files
CompuIvesSaraVieira
authored andcommitted
Fix Bookmark button for non-signed in users by removing it (codesandbox#3157)
1 parent 75d4692 commit 4f7c5e3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/app/src/app/pages/Sandbox/Editor/Workspace/items/NotOwnedSandboxInfo/NotOwnedSandboxInfo.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,17 @@ import { WorkspaceItem } from '../../WorkspaceItem';
1010
export const NotOwnedSandboxInfo = () => {
1111
const [editActions, setEditActions] = useState(null);
1212
const {
13-
state: { editor },
13+
state: { editor, hasLogIn },
1414
} = useOvermind();
1515
const staticTemplate = editor.currentSandbox.template === 'static';
1616

1717
return (
1818
<div style={{ marginTop: '1rem' }}>
1919
<Margin bottom={1.5}>
2020
<SandboxInfo sandbox={editor.currentSandbox} />
21-
{editor.currentSandbox.customTemplate && <BookmarkTemplateButton />}
21+
{editor.currentSandbox.customTemplate && hasLogIn && (
22+
<BookmarkTemplateButton />
23+
)}
2224
</Margin>
2325

2426
<WorkspaceItem actions={editActions} defaultOpen title="Files">

0 commit comments

Comments
 (0)