@@ -40,7 +40,7 @@ const RoutineList = ({ routineList }: { routineList: RoutineDto[] }) => {
4040 . reverse ( )
4141 . map ( ( data ) => (
4242 < div
43- className = "bg-backgrounds-sub rounded-6 h-[76px] box-border mb-3 mx-5 p-4 text-text-main relative "
43+ className = "relative bg-backgrounds-sub rounded-6 h-[76px] box-border mb-3 mx-5 p-4 text-text-main cursor-pointer "
4444 key = { data . routineId }
4545 onClick = { ( ) => toggleDrawer ( data . routineId ) }
4646 >
@@ -65,24 +65,32 @@ const RoutineList = ({ routineList }: { routineList: RoutineDto[] }) => {
6565 { activeMenuId === data . routineId && (
6666 < div
6767 ref = { menuRef }
68- className = "absolute top-[calc(50%-12px)] z-10 right-5 shadow-main bg-backgrounds-light text-md"
68+ className = "absolute top-[calc(50%-12px)] right-5 shadow-main bg-backgrounds-light text-md zIndex "
6969 >
70- < div className = "w-[152px] h-[46px] text-text-main p-3 cursor-pointer border-b border-borders-sub" >
70+ { /* <div
71+ onClick={(e: React.MouseEvent<HTMLDivElement>) => {
72+ e.stopPropagation();
73+ }}
74+ className="w-[152px] h-[46px] text-text-main p-3 cursor-pointer border-b border-borders-sub"
75+ >
7176 수정
72- </ div >
77+ </div> */ }
7378 < AlertDialog >
7479 < AlertDialogTrigger asChild >
7580 < div
7681 className = "w-[152px] h-[46px] text-text-accent p-3 cursor-pointer"
77- onClick = { ( ) => setRoutineToDelete ( data . routineId ) }
82+ onClick = { ( e : React . MouseEvent < HTMLDivElement > ) => {
83+ e . stopPropagation ( ) ;
84+ setRoutineToDelete ( data . routineId ) ;
85+ } }
7886 >
7987 삭제
8088 </ div >
8189 </ AlertDialogTrigger >
82- < AlertDialogOverlay className = "bg-[rgba(0, 0, 0, 0.7)] " />
90+ < AlertDialogOverlay className = "bg-[rgba(0, 0, 0,0.1) " />
8391 < AlertDialogContent className = "w-[296px] h-[148px] bg-backgrounds-sub rounded-6 p-0 flex flex-col items-center text-text-main border-none" >
8492 < AlertDialogHeader className = "text-center" >
85- < AlertDialogTitle className = "text-lg py-[19px] pb-[11px] font-semibold leading-[26px]" >
93+ < AlertDialogTitle className = "text-lg py-[19px] pb-[11px] font-semibold leading-[26px] text-center " >
8694 루틴 삭제
8795 </ AlertDialogTitle >
8896 < AlertDialogDescription className = "text-sm font-normal leading-5 text-text-main" >
@@ -92,14 +100,17 @@ const RoutineList = ({ routineList }: { routineList: RoutineDto[] }) => {
92100 < div className = "flex items-center h-12" >
93101 < AlertDialogCancel
94102 className = "w-[148px] h-full m-0 p-0 text-md font-medium bg-transparent leading-[22px] text-text-light text-center cursor-pointer border-none
95- focus:outline-none focus:ring-0 active:bg-transparent hover:bg-transparent"
96- onClick = { ( ) => setRoutineToDelete ( undefined ) }
103+ focus:outline-none focus:ring-0 active:bg-transparent hover:bg-transparent hover:text-text-main"
104+ onClick = { ( e : React . MouseEvent < HTMLButtonElement > ) => {
105+ e . stopPropagation ( ) ;
106+ setRoutineToDelete ( undefined ) ;
107+ } }
97108 >
98109 취소
99110 </ AlertDialogCancel >
100111 < AlertDialogAction
101112 className = "w-[148px] h-full m-0 p-0 text-md font-medium bg-transparent leading-[22px] text-text-accent text-center cursor-pointer border-none
102- focus:outline-none focus:ring-0 active:bg-transparent hover:bg-transparent"
113+ focus:outline-none focus:ring-0 active:bg-transparent hover:bg-transparent hover:font-bold "
103114 onClick = { confirmDelete }
104115 >
105116 삭제
@@ -129,7 +140,7 @@ const RoutineList = ({ routineList }: { routineList: RoutineDto[] }) => {
129140 </ Link >
130141 < Drawer open = { drawerToggle } onClose = { ( ) => toggleDrawer ( selectedId ) } >
131142 < div
132- className = { `fixed w-full h-screen inset-0 bg-backgrounds-default opacity-70 z-40 transition-opacity duration-300 ${
143+ className = { `fixed w-full h-screen inset-0 bg-backgrounds-default opacity-70 transition-opacity duration-300 ${
133144 drawerToggle ? 'opacity-70 visible' : 'opacity-0 invisible'
134145 } `}
135146 onClick = { ( ) => toggleDrawer ( selectedId ) }
0 commit comments