Show the toggle conditionally

The toggle button should only show if the environment variable is defined
This commit is contained in:
ajnart committed 2023-03-02 20:04:32 +09:00
1 parent f906214fa9
commit 46938db8f3
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -0,0 +1 @@
DISABLE_EDIT_MODE=TRUE
@@ -26,7 +26,7 @@ export function SettingsMenu({ newVersionAvailable }: { newVersionAvailable: str
</Menu.Target>
<Menu.Dropdown>
<ColorSchemeSwitch />
<EditModeToggle />
{process.env.EDIT_MODE_PASSWORD !== undefined && <EditModeToggle />}
<Menu.Divider />
{!editModeEnabled && (
<Menu.Item icon={<IconSettings strokeWidth={1.2} size={18} />} onClick={drawer.open}>