feat(frontend): nice login loading screen

This commit is contained in:
Julian Tölle 2022-06-25 18:26:28 +02:00
parent 01ed0c5491
commit a443b3ddbc
2 changed files with 20 additions and 1 deletions

View file

@ -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 <div>Loading...</div>;
return <LoginLoading />;
}
return (