make Toggle onChange prop optional

This commit is contained in:
maxichrome committed 2022-05-10 23:08:39 -05:00
1 parent 8308eb5e3c
commit 7cdf93d33f
1 file changed
+1 -1
@@ -4,7 +4,7 @@ import clsx from 'clsx';
export interface ToggleProps {
value: boolean;
onChange: (value: boolean) => void;
onChange?: (newValue: boolean) => void;
size?: 'sm' | 'md';
}