Skip to content

Commit

Permalink
refactor: #11 interface에서 type으로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
donghunee committed Jul 7, 2024
1 parent 1be0c7d commit c572a08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/component/common/modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import ModalPortal from "@/component/common/modal/ModalPortal";
import { css } from "@emotion/react";
import { ReactNode, useEffect, useRef } from "react";

interface Props {
type Props = {
isModalOpen: boolean;
onClose: () => void;
children?: ReactNode;
}
};

function Modal({ onClose, isModalOpen, children }: Props) {
const modalRef = useRef<HTMLDivElement>(null);
Expand Down
4 changes: 2 additions & 2 deletions src/component/common/modal/ModalPortal.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ReactNode } from "react";
import ReactDom from "react-dom";

interface Props {
type Props = {
children: ReactNode;
}
};

const ModalPortal = ({ children }: Props) => {
const el = document.getElementById("modal-root") as HTMLElement;
Expand Down

0 comments on commit c572a08

Please sign in to comment.