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/AllUsers.tsx

    rebdd3d4 rdc30259  
    22import { useNavigate } from "react-router-dom";
    33import axiosInstance from "../api/axiosInstance";
     4import LoadingSpinner from "../components/LoadingSpinner";
    45
    56interface User {
     
    3940        };
    4041
    41         if (users.length == 0) return <div className="p-6">Loading...</div>;
     42        if (users.length == 0) {
     43                return <LoadingSpinner />;
     44        }
    4245        if (error) {
    4346                return (
Note: See TracChangeset for help on using the changeset viewer.