diff options
author | crupest <crupest@outlook.com> | 2021-02-14 17:09:01 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-02-14 17:09:01 +0800 |
commit | 6522bbe2b1e0612508c48a7a06cbea89bd4674ae (patch) | |
tree | 4c3da3103fb6684d53fd3d9089fbb8c2bacad40c /FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx | |
parent | 647664af3408103681d4522b443f9baa4e6612af (diff) | |
download | timeline-6522bbe2b1e0612508c48a7a06cbea89bd4674ae.tar.gz timeline-6522bbe2b1e0612508c48a7a06cbea89bd4674ae.tar.bz2 timeline-6522bbe2b1e0612508c48a7a06cbea89bd4674ae.zip |
refactor: Refactor all pushAlert call.
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx')
-rw-r--r-- | FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx index 7fd98310..d01ecfa8 100644 --- a/FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx +++ b/FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx @@ -93,10 +93,7 @@ const TimelinePostView: React.FC<TimelinePostViewProps> = (props) => { .then(onDeleted, () => { pushAlert({ type: "danger", - message: { - type: "i18n", - key: "timeline.deletePostFailed", - }, + message: "timeline.deletePostFailed", }); }); }} |