From cbdcef39d50cfa2b1a4bb22e60da5b0561c1c9bf Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Sun, 30 May 2021 16:12:04 +0800
Subject: fix: Fix lint error.

---
 FrontEnd/src/app/views/timeline-common/MarkdownPostEdit.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

diff --git a/FrontEnd/src/app/views/timeline-common/MarkdownPostEdit.tsx b/FrontEnd/src/app/views/timeline-common/MarkdownPostEdit.tsx
index 6d0e5431..e51ed05c 100644
--- a/FrontEnd/src/app/views/timeline-common/MarkdownPostEdit.tsx
+++ b/FrontEnd/src/app/views/timeline-common/MarkdownPostEdit.tsx
@@ -67,7 +67,7 @@ const MarkdownPostEdit: React.FC<MarkdownPostEditProps> = ({
   }, []);
 
   React.useEffect(() => {
-    window.onbeforeunload = () => {
+    window.onbeforeunload = (): void | string => {
       if (!canLeave) {
         return t("timeline.confirmLeave");
       }
-- 
cgit v1.2.3


From ff5b4fc04bdebc110f51e27d3388c131eee85bec Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Sun, 30 May 2021 16:53:35 +0800
Subject: fix: Fix ci error.

---
 FrontEnd/src/app/views/timeline-common/MarkdownPostEdit.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

diff --git a/FrontEnd/src/app/views/timeline-common/MarkdownPostEdit.tsx b/FrontEnd/src/app/views/timeline-common/MarkdownPostEdit.tsx
index e51ed05c..685e17be 100644
--- a/FrontEnd/src/app/views/timeline-common/MarkdownPostEdit.tsx
+++ b/FrontEnd/src/app/views/timeline-common/MarkdownPostEdit.tsx
@@ -67,7 +67,7 @@ const MarkdownPostEdit: React.FC<MarkdownPostEditProps> = ({
   }, []);
 
   React.useEffect(() => {
-    window.onbeforeunload = (): void | string => {
+    window.onbeforeunload = (): unknown => {
       if (!canLeave) {
         return t("timeline.confirmLeave");
       }
-- 
cgit v1.2.3

