Skip to content

Commit 3b61280

Browse files
committed
fix: 중복 키 문제 해결
1 parent aec8673 commit 3b61280

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/shared/ui/Drawer/Drawer.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export function Drawer({ isOpen, onClose, children }: Props) {
3131
return (
3232
<Portal isOpen={isOpen}>
3333
<motion.div
34+
key="drawer-backdrop"
3435
onClick={onClose}
3536
className="fixed inset-0 bg-black/50"
3637
initial={FADE_IN_ANIMATION.initial}
@@ -39,6 +40,7 @@ export function Drawer({ isOpen, onClose, children }: Props) {
3940
/>
4041
<div className="fixed top-0 right-0 z-50 h-full">
4142
<motion.div
43+
key="drawer-panel"
4244
className="h-full bg-white shadow-lg"
4345
initial={SLIDE_IN_ANIMATION.initial}
4446
animate={SLIDE_IN_ANIMATION.animate}

0 commit comments

Comments
 (0)