mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-17 10:41:10 +01:00
Disable show the toggle conditionally
This commit is contained in:
@@ -26,7 +26,7 @@ export function SettingsMenu({ newVersionAvailable }: { newVersionAvailable: str
|
||||
</Menu.Target>
|
||||
<Menu.Dropdown>
|
||||
<ColorSchemeSwitch />
|
||||
{process.env.EDIT_MODE_PASSWORD !== undefined && <EditModeToggle />}
|
||||
<EditModeToggle />
|
||||
<Menu.Divider />
|
||||
{!editModeEnabled && (
|
||||
<Menu.Item icon={<IconSettings strokeWidth={1.2} size={18} />} onClick={drawer.open}>
|
||||
|
||||
Reference in New Issue
Block a user