Settings refactor.
This commit is contained in:
1 parent
1b81074752
commit
c98f324c22
56 files changed
+706
-348
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user