From 7b1dae90ad4b15b4d8e851072a1e17a9cb6f58f2 Mon Sep 17 00:00:00 2001 From: Jing Hua Date: Sun, 12 Mar 2023 02:40:13 +0800 Subject: [PATCH] remove loading screen --- src/App.tsx | 13 +++++-------- src/components/LoadingScreen/LoadingScreen.tsx | 12 ------------ src/components/LoadingScreen/index.ts | 1 - 3 files changed, 5 insertions(+), 21 deletions(-) delete mode 100644 src/components/LoadingScreen/LoadingScreen.tsx delete mode 100644 src/components/LoadingScreen/index.ts diff --git a/src/App.tsx b/src/App.tsx index 630b7e6..8ad6d71 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,9 +1,8 @@ -import React, { useEffect, Suspense } from 'react'; +import React, { useEffect } from 'react'; import useStore from '@store/store'; import Chat from '@components/Chat'; import Menu from '@components/Menu'; -import LoadingScreen from '@components/LoadingScreen'; import useInitialiseNewChat from '@hooks/useInitialiseNewChat'; import { ChatInterface } from '@type/chat'; @@ -66,12 +65,10 @@ function App() { }, []); return ( - }> -
- - -
-
+
+ + +
); } diff --git a/src/components/LoadingScreen/LoadingScreen.tsx b/src/components/LoadingScreen/LoadingScreen.tsx deleted file mode 100644 index abd35e0..0000000 --- a/src/components/LoadingScreen/LoadingScreen.tsx +++ /dev/null @@ -1,12 +0,0 @@ -import React from 'react'; -import SpinnerIcon from '@icon/SpinnerIcon'; - -const LoadingScreen = () => { - return ( -
- -
- ); -}; - -export default LoadingScreen; diff --git a/src/components/LoadingScreen/index.ts b/src/components/LoadingScreen/index.ts deleted file mode 100644 index efecfe1..0000000 --- a/src/components/LoadingScreen/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './LoadingScreen';