@@ -24,7 +24,7 @@ const KebabModal = ({ setModalOpen, id }) => {
24
24
25
25
const confirmDeleteHandler = ( ) => {
26
26
//DELETE 기능넣으면 됨
27
- dispatch ( __deleteSchedule ( [ id , userId , dispatch ] ) ) ;
27
+ dispatch ( __deleteSchedule ( { id, userId, dispatch } ) ) ;
28
28
navigate ( "/main" ) ;
29
29
} ;
30
30
@@ -35,8 +35,12 @@ const KebabModal = ({ setModalOpen, id }) => {
35
35
{ deleteModalOpen ? (
36
36
// <DeleteScheduleModal/>
37
37
< div className = "text-black pt-8 items-center w-[300px] h-[167px] text-center rounded-[16px] fixed top-[38%] z-20 bg-white " >
38
- < div className = "text-[18px] font-bold flex flex-col " > 해당 일정을 삭제하시겠습니까? </ div >
39
- < div className = "mt-[14px] text-[14px] text-[#6F6F6F]" > 삭제된 일정은 복구가 불가능합니다.</ div >
38
+ < div className = "text-[18px] font-bold flex flex-col " >
39
+ 해당 일정을 삭제하시겠습니까?{ " " }
40
+ </ div >
41
+ < div className = "mt-[14px] text-[14px] text-[#6F6F6F]" >
42
+ 삭제된 일정은 복구가 불가능합니다.
43
+ </ div >
40
44
< button
41
45
className = "bg-[#A31414] rounded-[4px] h-[40px] w-[127px] text-white mt-[18px]"
42
46
onClick = { confirmDeleteHandler }
@@ -54,23 +58,38 @@ const KebabModal = ({ setModalOpen, id }) => {
54
58
//이하는 모두 케밥버튼눌렀을 때 수정&삭제 모달
55
59
< div className = " bottom-0 w-[375px] h-[205px] rounded-t-lg bg-white fixed " >
56
60
< div className = "h-[25px] pt-[11px]" >
57
- < img src = { barIcon } alt = "bar" className = "w-[80px] h-[3px] m-auto" />
61
+ < img
62
+ src = { barIcon }
63
+ alt = "bar"
64
+ className = "w-[80px] h-[3px] m-auto"
65
+ />
58
66
</ div >
59
67
< div
60
68
onClick = { scheduleEditHandler }
61
69
className = "cursor-pointer text-[#121213] font-bold pt-[23px] h-[60px] flex row border-solid border-[rgb(226,226,226)] border-b-[1px]"
62
70
>
63
- < img src = { editIcon } alt = "edit" className = "w-[18px] h-[18px] ml-[30px] mr-[20px]" />
71
+ < img
72
+ src = { editIcon }
73
+ alt = "edit"
74
+ className = "w-[18px] h-[18px] ml-[30px] mr-[20px]"
75
+ />
64
76
수정
65
77
</ div >
66
78
< div
67
79
onClick = { scheduleDeleteHandler }
68
80
className = "cursor-pointer text-[#A31414] font-bold pt-[23px] h-[60px] flex row border-solid border-[rgb(226,226,226)] border-b-[1px]"
69
81
>
70
- < img src = { deleteIcon } alt = "delete" className = "w-[24px] h-[24px] ml-[30px] mr-[20px] z-0" />
82
+ < img
83
+ src = { deleteIcon }
84
+ alt = "delete"
85
+ className = "w-[24px] h-[24px] ml-[30px] mr-[20px] z-0"
86
+ />
71
87
삭제
72
88
</ div >
73
- < div className = "cursor-pointer m-auto text-center pt-[22px] h-[60px] font-bold" onClick = { closeModal } >
89
+ < div
90
+ className = "cursor-pointer m-auto text-center pt-[22px] h-[60px] font-bold"
91
+ onClick = { closeModal }
92
+ >
74
93
닫기
75
94
</ div >
76
95
</ div >
0 commit comments