Fixed Dockerfile and Loading component

This commit is contained in:
Fernando Videira
2024-06-16 04:46:47 +01:00
parent 598395aebe
commit 13212f6170
5 changed files with 31 additions and 21 deletions
+1
View File
@@ -10,3 +10,4 @@ export default function App() {
</div>
);
}
+11
View File
@@ -0,0 +1,11 @@
import React from 'react';
const Loading = () => {
return (
<div className="flex items-center justify-center h-screen">
<div className="animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"></div>
</div>
);
};
export default Loading;
+2 -1
View File
@@ -5,11 +5,12 @@ import "./index.css";
import { BrowserRouter } from "react-router-dom";
import "./i18n";
import Loading from "./Components/Loading.tsx";
ReactDOM.createRoot(document.getElementById("root")!).render(
<BrowserRouter>
<React.StrictMode>
<Suspense fallback="...is loading">
<Suspense fallback={<Loading />}>
<App />
</Suspense>
</React.StrictMode>