From cc19976e4840081dff9fb6394a45a008c252ca64 Mon Sep 17 00:00:00 2001 From: Dialpuri Date: Wed, 1 Nov 2023 17:34:18 +0000 Subject: [PATCH] Updated loading screens --- webserver/src/App.jsx | 3 ++- webserver/src/components/Loading/PageLoad.jsx | 12 ++++++++++-- webserver/src/layouts/Header.jsx | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/webserver/src/App.jsx b/webserver/src/App.jsx index 58f6a067..e50186d8 100644 --- a/webserver/src/App.jsx +++ b/webserver/src/App.jsx @@ -1,12 +1,13 @@ import { useEffect, useState, Suspense } from 'react' import './App.css' import HomeSection from './pages/Home/HomeSection' +import PageLoad from './components/Loading/PageLoad' function App() { const [resetApp, setResetApp] = useState(false) return ( - Loading... }> + }>
diff --git a/webserver/src/components/Loading/PageLoad.jsx b/webserver/src/components/Loading/PageLoad.jsx index 90201b82..115d3a10 100644 --- a/webserver/src/components/Loading/PageLoad.jsx +++ b/webserver/src/components/Loading/PageLoad.jsx @@ -1,7 +1,15 @@ +import ClipLoader from "react-spinners/ClipLoader"; + export default function PageLoad() { return ( -
-

Loading page

+
+ {/*

Loading Privateer Web App

*/} +
) diff --git a/webserver/src/layouts/Header.jsx b/webserver/src/layouts/Header.jsx index 9c2486b8..2d19dc85 100644 --- a/webserver/src/layouts/Header.jsx +++ b/webserver/src/layouts/Header.jsx @@ -15,7 +15,7 @@ export function Header(props) {
{props.fallback != true ? - }> + }> {props.submit == null ? : props.tableData == null ?