Skip to content

Commit c40056c

Browse files
committed
Fix <ModalBody/> naming clash
1 parent 0cf9d3f commit c40056c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/components/elements/modals/ActiveModal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import * as AppTypes from "../../../../IsaacAppTypes";
33
import {closeActiveModal, useAppDispatch} from "../../../state";
44
import classNames from "classnames";
55
import {isAda, isPhy, siteSpecific} from "../../../services";
6-
import { Modal, ModalHeader, ModalFooter } from "reactstrap";
6+
import { Modal, ModalHeader, ModalFooter, ModalBody } from "reactstrap";
77

88
interface ActiveModalProps {
99
activeModal?: AppTypes.ActiveModal | null;
1010
}
1111

1212
export const ActiveModal = ({activeModal}: ActiveModalProps) => {
13-
const ModalBody = activeModal && activeModal.body;
13+
const ActiveModalBody = activeModal && activeModal.body;
1414
const dispatch = useAppDispatch();
1515

1616
const toggle = () => {
@@ -48,7 +48,7 @@ export const ActiveModal = ({activeModal}: ActiveModalProps) => {
4848
{activeModal.title}
4949
</ModalHeader>}
5050
<ModalBody className={classNames({"pt-0": !activeModal.title, "pb-2 mx-4": !activeModal?.noPadding, "pb-0": activeModal?.noPadding, "overflow-visible": activeModal?.overflowVisible})}>
51-
{typeof ModalBody === "function" ? <ModalBody /> : ModalBody}
51+
{typeof ActiveModalBody === "function" ? <ActiveModalBody /> : ActiveModalBody}
5252
</ModalBody>
5353
{activeModal.buttons &&
5454
<ModalFooter className="mb-4 mx-2 align-self-center">

0 commit comments

Comments
 (0)