mirror of
https://github.com/umami-software/umami.git
synced 2026-02-05 21:27:20 +01:00
Fixed nav display.
This commit is contained in:
parent
2f7f8911cd
commit
25f96f6b6b
5 changed files with 30 additions and 32 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import { Button, Icon } from '@umami/react-zen';
|
||||
import { Button, Icon, ButtonProps } from '@umami/react-zen';
|
||||
import { PanelLeft } from '@/components/icons';
|
||||
import { useGlobalState } from '@/components/hooks';
|
||||
|
||||
export function PanelButton() {
|
||||
export function PanelButton(props: ButtonProps) {
|
||||
const [isCollapsed, setIsCollapsed] = useGlobalState('sidenav-collapsed');
|
||||
return (
|
||||
<Button onPress={() => setIsCollapsed(!isCollapsed)} variant="quiet">
|
||||
<Button onPress={() => setIsCollapsed(!isCollapsed)} variant="quiet" {...props}>
|
||||
<Icon>
|
||||
<PanelLeft />
|
||||
</Icon>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue