Changeset 67dfe57 for components


Ignore:
Timestamp:
12/24/25 17:31:11 (7 months ago)
Author:
Tome <gjorgievtome@…>
Branches:
main
Children:
e729b88
Parents:
40ac7a9
Message:

Fix AuthState

File:
1 edited

Legend:

Unmodified
Added
Removed
  • components/Navbar.tsx

    r40ac7a9 r67dfe57  
    77import Box from "@mui/material/Box";
    88import { styled } from "@mui/material/styles";
    9 import { fetchAuthState } from "../pages/auth/authState.telefunc";
    109import LogoUrl from '../assets/projectlogo.png';
     10import {onGetAuthState} from "../pages/+Layout.telefunc";
    1111
    1212
     
    2525    useEffect(() => {
    2626        let active = true;
    27         fetchAuthState()
     27        onGetAuthState()
    2828            .then((data) => active && setAuth({ isLoggedIn: data.isLoggedIn, username: data.username }))
    2929            .catch(() => active && setAuth({ isLoggedIn: false, username: null }));
Note: See TracChangeset for help on using the changeset viewer.