From 009d49e5b5cf7f7568e4b17961aa11b36d589a90 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Thu, 3 Jun 2021 15:00:26 +0800
Subject: build: Good bye babel!

---
 FrontEnd/src/app/App.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'FrontEnd/src/app/App.tsx')

diff --git a/FrontEnd/src/app/App.tsx b/FrontEnd/src/app/App.tsx
index 6431ebbb..a28b99ae 100644
--- a/FrontEnd/src/app/App.tsx
+++ b/FrontEnd/src/app/App.tsx
@@ -1,4 +1,4 @@
-import React from "react";
+import React, { ReactElement } from "react";
 import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
 
 import AppBar from "./views/common/AppBar";
@@ -23,7 +23,7 @@ const LazyAdmin = React.lazy(
   () => import(/* webpackChunkName: "admin" */ "./views/admin/Admin")
 );
 
-const App: React.FC = () => {
+function App(): ReactElement | null {
   const user = useRawUser();
 
   React.useEffect(() => {
@@ -82,6 +82,6 @@ const App: React.FC = () => {
       </React.Suspense>
     );
   }
-};
+}
 
 export default App;
-- 
cgit v1.2.3

