Skip to content

Commit

Permalink
docs(Modal): use real name and not Legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
YossiSaadi committed Dec 9, 2024
1 parent 1c57b15 commit 9880db6
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useCallback, useState, useMemo } from "react";
import LegacyModalContent from "../../../components/LegacyModal/LegacyModalContent/LegacyModalContent";
import ModalContent from "../../../components/LegacyModal/LegacyModalContent/LegacyModalContent";
import Dropdown from "../../../components/Dropdown/Dropdown";
import { DropdownOption } from "../../../components/Dropdown/Dropdown.types";
import Modal from "../../../components/LegacyModal/LegacyModal";
Expand Down Expand Up @@ -43,9 +43,9 @@ export const ModalWithDamagedDropdown: React.FC = () => {
<div>
<Button onClick={() => setShow(true)}>Open Modal</Button>
<Modal title="Modal with dropdown" show={show} onClose={closeModal}>
<LegacyModalContent>
<ModalContent>
<Dropdown options={options} />
</LegacyModalContent>
</ModalContent>
</Modal>
</div>
);
Expand Down Expand Up @@ -107,9 +107,9 @@ export const MenuPosition: React.FC = () => {
<div>
<Button onClick={() => setShow(true)}>Open Modal</Button>
<Modal title="Modal with dropdown" show={show} onClose={closeModal}>
<LegacyModalContent>
<ModalContent>
<Dropdown placeholder="Dropdown" options={options} menuPosition={Dropdown.menuPositions.FIXED} />
</LegacyModalContent>
</ModalContent>
</Modal>
</div>
<Dialog
Expand Down Expand Up @@ -185,9 +185,9 @@ export const InsideOverflowContainer: React.FC = () => {
<div>
<Button onClick={() => setShow(true)}>Open Modal</Button>
<Modal title="Modal with dropdown" show={show} onClose={closeModal}>
<LegacyModalContent>
<ModalContent>
<Dropdown options={options} insideOverflowContainer />
</LegacyModalContent>
</ModalContent>
</Modal>
</div>
<Dialog
Expand Down

0 comments on commit 9880db6

Please sign in to comment.