Skip to content

Commit 13070b5

Browse files
committed
fix delete reject
1 parent da8c96d commit 13070b5

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

src/shared/containers/timeline-wall/pending-approvals/approval-item/index.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,7 @@ function ApprovalItem({
9494
<ModalDeleteConfirmation
9595
id={event.id}
9696
eventItem={showModalDelete}
97-
onClose={(result) => {
98-
if (result === true) {
99-
removeEvent(showModalDelete);
100-
}
97+
onClose={() => {
10198
setShowModalDelete(false);
10299
}}
103100
handle={event.createdBy}

src/shared/containers/timeline-wall/pending-approvals/styles.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@
3939
font-size: 18px;
4040
line-height: 22px;
4141
text-align: center;
42+
margin-bottom: 32px;
4243
}

src/shared/containers/timeline-wall/timeline-events/events/event-item/index.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,8 @@ function EventItem({
114114
<ModalDeleteConfirmation
115115
id={eventItem.id}
116116
eventItem={showModalDelete}
117-
onClose={(result) => {
118-
if (result === true) {
119-
removeEvent(showModalDelete);
120-
}
117+
handle={eventItem.createdBy}
118+
onClose={() => {
121119
setShowModalDelete(false);
122120
}}
123121
deleteEvent={deleteEvent}

src/shared/containers/timeline-wall/timeline-events/styles.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
font-weight: 500;
2727
font-size: 18px;
2828
line-height: 22px;
29+
margin-bottom: 32px;
2930
}
3031

3132
.hide-mobile {

0 commit comments

Comments
 (0)