From 3d3df42576ff8687df0c332b3d7deb95185226ad Mon Sep 17 00:00:00 2001 From: ValdiANS Date: Wed, 1 Oct 2025 14:07:30 +0700 Subject: [PATCH] chore(FE-40): update import path and return isLoadingUser and setIsLoadingUser in useAuth --- src/services/hooks/useAuth.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/services/hooks/useAuth.tsx b/src/services/hooks/useAuth.tsx index 012badfa..86bf43ed 100644 --- a/src/services/hooks/useAuth.tsx +++ b/src/services/hooks/useAuth.tsx @@ -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()((set) => ({ })); export const useAuth = () => { - const { user, setUser } = useAuthStore(); + const { user, setUser, isLoadingUser, setIsLoadingUser } = useAuthStore(); return { user, setUser, + isLoadingUser, + setIsLoadingUser, }; };