diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 09570eb..874953f 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -2,6 +2,7 @@ import React from "react"; import { Route, Routes } from "react-router-dom"; import { Footer } from "./components/Footer"; import { LoginFailure } from "./components/LoginFailure"; +import { LoginLoading } from "./components/LoginLoading"; import { LoginSuccess } from "./components/LoginSuccess"; import { NavBar } from "./components/NavBar"; import { RecentListens } from "./components/RecentListens"; @@ -16,7 +17,7 @@ export function App() { const { isLoaded } = useAuth(); if (!isLoaded) { - return
Loading...
; + return ; } return ( diff --git a/frontend/src/components/LoginLoading.tsx b/frontend/src/components/LoginLoading.tsx new file mode 100644 index 0000000..b98f4c1 --- /dev/null +++ b/frontend/src/components/LoginLoading.tsx @@ -0,0 +1,18 @@ +import React from "react"; +import { Spinner } from "./Spinner"; + +export const LoginLoading: React.FC = () => ( +
+
+
+ Listory +
+

+ Logging in +

+ +
+
+); + +
;