Disable show the toggle conditionally

This commit is contained in:
ajnart
2023-03-02 20:44:52 +09:00
parent ab212e36d0
commit caa625c3ec

View File

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