mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-12 16:35:49 +01:00
Show the toggle conditionally
The toggle button should only show if the environment variable is defined
This commit is contained in:
@@ -26,7 +26,7 @@ export function SettingsMenu({ newVersionAvailable }: { newVersionAvailable: str
|
|||||||
</Menu.Target>
|
</Menu.Target>
|
||||||
<Menu.Dropdown>
|
<Menu.Dropdown>
|
||||||
<ColorSchemeSwitch />
|
<ColorSchemeSwitch />
|
||||||
<EditModeToggle />
|
{process.env.EDIT_MODE_PASSWORD !== undefined && <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}>
|
||||||
|
|||||||
Reference in New Issue
Block a user