mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-25 00:35:02 -04:00
make Toggle onChange prop optional
This commit is contained in:
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
||||
|
||||
export interface ToggleProps {
|
||||
value: boolean;
|
||||
onChange: (value: boolean) => void;
|
||||
onChange?: (newValue: boolean) => void;
|
||||
size?: 'sm' | 'md';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user