mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
chore(FE-40): update import path and return isLoadingUser and setIsLoadingUser in useAuth
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { create } from 'zustand';
|
||||
import { UserWithRoles } from '@/types/api';
|
||||
import { UserWithRoles } from '@/types/api/api-general';
|
||||
|
||||
type AuthStore = {
|
||||
user?: UserWithRoles;
|
||||
@@ -16,10 +16,12 @@ const useAuthStore = create<AuthStore>()((set) => ({
|
||||
}));
|
||||
|
||||
export const useAuth = () => {
|
||||
const { user, setUser } = useAuthStore();
|
||||
const { user, setUser, isLoadingUser, setIsLoadingUser } = useAuthStore();
|
||||
|
||||
return {
|
||||
user,
|
||||
setUser,
|
||||
isLoadingUser,
|
||||
setIsLoadingUser,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user