mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 06:07:17 +01:00
Moved panel button.
This commit is contained in:
parent
a97445fb82
commit
c60e8b3d23
4 changed files with 19 additions and 18 deletions
|
|
@ -5,7 +5,12 @@ import { useGlobalState } from '@/components/hooks';
|
|||
export function PanelButton(props: ButtonProps) {
|
||||
const [isCollapsed, setIsCollapsed] = useGlobalState('sidenav-collapsed');
|
||||
return (
|
||||
<Button onPress={() => setIsCollapsed(!isCollapsed)} variant="quiet" {...props}>
|
||||
<Button
|
||||
onPress={() => setIsCollapsed(!isCollapsed)}
|
||||
variant="zero"
|
||||
{...props}
|
||||
style={{ padding: 0 }}
|
||||
>
|
||||
<Icon>
|
||||
<PanelLeft />
|
||||
</Icon>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue