Skip to content

Commit f4fcfad

Browse files
authored
[#355] DrawerProps 리팩터링 (#356)
* refactor: PropsWithChildren 제네릭을 통해 타입을 확장하도록 수정
1 parent b362bcb commit f4fcfad

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/ui/common/BottomSheet.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@ import { useEffect } from 'react';
44
import IconButton from '@/ui/common/IconButton';
55
import type { PropsWithChildren } from 'react';
66

7-
interface DrawerProps extends PropsWithChildren {
7+
interface DrawerProps {
88
isOpen: boolean;
99
onClose: () => void;
1010
onCancel?: () => void;
1111
}
1212

13-
const Drawer = ({ isOpen, onClose, onCancel, children }: DrawerProps) => {
13+
const Drawer = ({
14+
isOpen,
15+
onClose,
16+
onCancel,
17+
children,
18+
}: PropsWithChildren<DrawerProps>) => {
1419
const handleClickOverlay = () => {
1520
onCancel && onCancel();
1621
onClose();

0 commit comments

Comments
 (0)