Ignore:
Timestamp:
02/07/26 15:34:33 (5 months ago)
Author:
Filip Gavrilovski <filipgavrilovski28@…>
Branches:
main
Children:
8a47b30
Parents:
ebdd3d4
Message:

add loading spinner; don't show sidebar for unauthenticated users

File:
1 edited

Legend:

Unmodified
Added
Removed
  • frontend/src/pages/UserDetail.tsx

    rebdd3d4 rdc30259  
    22import { useNavigate, useParams } from "react-router-dom";
    33import axiosInstance from "../api/axiosInstance";
     4import LoadingSpinner from "../components/LoadingSpinner";
    45import ArtistView from "../components/userProfile/ArtistView";
    56import ListenerView from "../components/userProfile/ListenerView";
     
    174175        }
    175176
    176         if (!user) return <div className="p-6">Loading...</div>;
     177        if (!user) {
     178                return <LoadingSpinner />;
     179        }
    177180
    178181        return (
Note: See TracChangeset for help on using the changeset viewer.