aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-02-14 17:09:01 +0800
committercrupest <crupest@outlook.com>2021-02-14 17:09:01 +0800
commit6965a02266b835a758c127f250c9628cebfbbc6d (patch)
tree9eadd63dea77089e7b9eb6efd9135013430f9ba1 /FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx
parent962eb6ef3096dc90149a286190096a99496dd90a (diff)
downloadtimeline-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.tsx5
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",
});
});
}}