mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 21:57:16 +01:00
Settings refactor.
This commit is contained in:
parent
1b81074752
commit
c98f324c22
56 changed files with 706 additions and 348 deletions
|
|
@ -62,7 +62,7 @@ export function FilterBar() {
|
|||
})}
|
||||
</Row>
|
||||
<TooltipTrigger delay={0}>
|
||||
<Button variant="wrapper" onPress={handleResetFilter} style={{ alignSelf: 'flex-start' }}>
|
||||
<Button variant="zero" onPress={handleResetFilter} style={{ alignSelf: 'flex-start' }}>
|
||||
<Icon>
|
||||
<Close />
|
||||
</Icon>
|
||||
|
|
|
|||
|
|
@ -5,9 +5,11 @@ import { Ellipsis } from '@/components/icons';
|
|||
export function MenuButton({
|
||||
children,
|
||||
onAction,
|
||||
isDisabled,
|
||||
}: {
|
||||
children: ReactNode;
|
||||
onAction?: (action: string) => void;
|
||||
isDisabled?: boolean;
|
||||
}) {
|
||||
const handleAction = (key: Key) => {
|
||||
onAction?.(key.toString());
|
||||
|
|
@ -15,7 +17,7 @@ export function MenuButton({
|
|||
|
||||
return (
|
||||
<DialogTrigger>
|
||||
<Button variant="quiet">
|
||||
<Button variant="quiet" isDisabled={isDisabled}>
|
||||
<Icon>
|
||||
<Ellipsis />
|
||||
</Icon>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue