mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-01 20:39:18 +00:00
refactor: use coffee icon for keep awake feature
This commit is contained in:
committed by
Alex Christoffer Rasmussen
parent
a02cdf71c0
commit
56c4d68bae
@@ -1,5 +1,6 @@
|
|||||||
import { memo } from 'react';
|
import { memo } from 'react';
|
||||||
import { IoClose, IoContract, IoExpand, IoEye, IoLockClosedOutline, IoSwapVertical } from 'react-icons/io5';
|
import { IoClose, IoContract, IoExpand, IoLockClosedOutline, IoSwapVertical } from 'react-icons/io5';
|
||||||
|
import { LuCoffee } from 'react-icons/lu';
|
||||||
import { useLocation } from 'react-router';
|
import { useLocation } from 'react-router';
|
||||||
import { Dialog } from '@base-ui-components/react/dialog';
|
import { Dialog } from '@base-ui-components/react/dialog';
|
||||||
import { useDisclosure, useFullscreen } from '@mantine/hooks';
|
import { useDisclosure, useFullscreen } from '@mantine/hooks';
|
||||||
@@ -67,7 +68,7 @@ function NavigationMenu({ isOpen, onClose }: NavigationMenuProps) {
|
|||||||
{window.isSecureContext && (
|
{window.isSecureContext && (
|
||||||
<NavigationMenuItem active={keepAwake} onClick={toggleKeepAwake}>
|
<NavigationMenuItem active={keepAwake} onClick={toggleKeepAwake}>
|
||||||
Keep Awake
|
Keep Awake
|
||||||
<IoEye />
|
<LuCoffee />
|
||||||
{keepAwake && <span className={style.note}>Active</span>}
|
{keepAwake && <span className={style.note}>Active</span>}
|
||||||
</NavigationMenuItem>
|
</NavigationMenuItem>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user