diff options
author | crupest <crupest@outlook.com> | 2021-06-03 15:00:26 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-06-03 15:00:26 +0800 |
commit | 456341faf13470fc1eed5601e7beeb45e0613f7d (patch) | |
tree | 0e3a0736231e250c7bb6b1597d0409107adef4af /FrontEnd/src/app/App.tsx | |
parent | c7dd16740d7a8953533c895d1bebec0d84f7ec65 (diff) | |
download | timeline-456341faf13470fc1eed5601e7beeb45e0613f7d.tar.gz timeline-456341faf13470fc1eed5601e7beeb45e0613f7d.tar.bz2 timeline-456341faf13470fc1eed5601e7beeb45e0613f7d.zip |
build: Good bye babel!
Diffstat (limited to 'FrontEnd/src/app/App.tsx')
-rw-r--r-- | FrontEnd/src/app/App.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
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; |