From 158bc24fc3907832198c8049bd109366c6120a5e 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 9f551b79f15864897941278b66c3dfa1daf925ec 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

