Skip to content

Commit

Permalink
Merge pull request #245 from elias-oxopia/master
Browse files Browse the repository at this point in the history
fixes
  • Loading branch information
elias-oxopia authored Jun 26, 2023
2 parents 7ff0197 + 816ecce commit 0346760
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const Checkbox = React.forwardRef<HTMLInputElement, Props>(
const [isChecked, setIsChecked] = useState<boolean>(value ?? false);

useEffect(() => {
// fix
setIsChecked(value ?? false);
}, [value]);

Expand Down
2 changes: 1 addition & 1 deletion src/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Modal: React.FC<Props> & { Footer: typeof Footer } = ({
onEscKeyDown,
className,
children,
maxWidth,
maxWidth, // added optional maxWidth prop
}: Props) => {
const modalRef = React.useRef<HTMLDivElement>(null);

Expand Down

0 comments on commit 0346760

Please sign in to comment.