From 6522bbe2b1e0612508c48a7a06cbea89bd4674ae Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Sun, 14 Feb 2021 17:09:01 +0800
Subject: refactor: Refactor all pushAlert call.

---
 FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

(limited to 'FrontEnd/src/app/views/timeline-common/TimelinePostView.tsx')

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",
                 });
               });
           }}
-- 
cgit v1.2.3

