diff --git a/src/components/Checkbox/Checkbox.tsx b/src/components/Checkbox/Checkbox.tsx index c41abbf..8253842 100644 --- a/src/components/Checkbox/Checkbox.tsx +++ b/src/components/Checkbox/Checkbox.tsx @@ -21,6 +21,7 @@ const Checkbox = React.forwardRef( const [isChecked, setIsChecked] = useState(value ?? false); useEffect(() => { + // fix setIsChecked(value ?? false); }, [value]); diff --git a/src/components/Modal/Modal.tsx b/src/components/Modal/Modal.tsx index 62b39a4..5e93495 100644 --- a/src/components/Modal/Modal.tsx +++ b/src/components/Modal/Modal.tsx @@ -30,7 +30,7 @@ const Modal: React.FC & { Footer: typeof Footer } = ({ onEscKeyDown, className, children, - maxWidth, + maxWidth, // added optional maxWidth prop }: Props) => { const modalRef = React.useRef(null);