Skip to content

Commit

Permalink
fix(modal): Correct typo in Modal examples
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Apr 4, 2024
1 parent 01ac0f8 commit 532aa02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example-ts/src/pages/components/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const modal = `
const [isOpen, setIsOpen] = useState(false);
return (
<>
<Button onClick={(e) => {setIsOpen(true); e.preventDefault()}}>Ouvir la modale</Button>
<Button onClick={(e) => {setIsOpen(true); e.preventDefault()}}>Ouvrir la modale</Button>
<Modal isOpen={isOpen} hide={() => setIsOpen(false)}>
<ModalTitle>Opened Controlled</ModalTitle>
<ModalContent>Hello Modal</ModalContent>
Expand All @@ -25,7 +25,7 @@ const modal = `
`;
const modalUncontrolled = `
<>
<Button data-fr-opened="false" aria-controls="modal-4">Ouvir la modale</Button>
<Button data-fr-opened="false" aria-controls="modal-4">Ouvrir la modale</Button>
<Modal isOpen id="modal-4">
<ModalTitle>Opened Uncontrolled</ModalTitle>
<ModalContent>Hello Modal</ModalContent>
Expand Down

0 comments on commit 532aa02

Please sign in to comment.