mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 11:35:41 +00:00
@ -67,16 +67,6 @@ export function MainMenu() {
|
|||||||
<Trans>System Settings</Trans>
|
<Trans>System Settings</Trans>
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
)}
|
)}
|
||||||
<Menu.Item
|
|
||||||
onClick={toggleColorScheme}
|
|
||||||
leftSection={colorScheme === 'dark' ? <IconSun /> : <IconMoonStars />}
|
|
||||||
c={
|
|
||||||
colorScheme === 'dark' ? vars.colors.yellow[4] : vars.colors.blue[6]
|
|
||||||
}
|
|
||||||
>
|
|
||||||
<Trans>Change Color Mode</Trans>
|
|
||||||
</Menu.Item>
|
|
||||||
{user?.is_staff && <Menu.Divider />}
|
|
||||||
{user?.is_staff && (
|
{user?.is_staff && (
|
||||||
<Menu.Item
|
<Menu.Item
|
||||||
leftSection={<IconUserBolt />}
|
leftSection={<IconUserBolt />}
|
||||||
@ -86,6 +76,16 @@ export function MainMenu() {
|
|||||||
<Trans>Admin Center</Trans>
|
<Trans>Admin Center</Trans>
|
||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
)}
|
)}
|
||||||
|
{user?.is_staff && <Menu.Divider />}
|
||||||
|
<Menu.Item
|
||||||
|
onClick={toggleColorScheme}
|
||||||
|
leftSection={colorScheme === 'dark' ? <IconSun /> : <IconMoonStars />}
|
||||||
|
c={
|
||||||
|
colorScheme === 'dark' ? vars.colors.yellow[4] : vars.colors.blue[6]
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<Trans>Change Color Mode</Trans>
|
||||||
|
</Menu.Item>
|
||||||
<Menu.Divider />
|
<Menu.Divider />
|
||||||
<Menu.Item
|
<Menu.Item
|
||||||
leftSection={<IconLogout />}
|
leftSection={<IconLogout />}
|
||||||
|
Reference in New Issue
Block a user