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 | 6965a02266b835a758c127f250c9628cebfbbc6d (patch) | |
tree | 9eadd63dea77089e7b9eb6efd9135013430f9ba1 /FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx | |
parent | 962eb6ef3096dc90149a286190096a99496dd90a (diff) | |
download | timeline-6965a02266b835a758c127f250c9628cebfbbc6d.tar.gz timeline-6965a02266b835a758c127f250c9628cebfbbc6d.tar.bz2 timeline-6965a02266b835a758c127f250c9628cebfbbc6d.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", }); }); }} |