forked from cardosofelipe/fast-next-template
Refactor useAuth imports to utilize AuthContext and enhance test store injection handling
- Replaced `useAuthStore` imports with `useAuth` from `AuthContext` in `AuthGuard` and `Header` for consistency. - Enhanced `getAuthStore` to prioritize E2E test store injection for improved testability. - Updated comments to reflect changes and clarify usage patterns.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
import Link from 'next/link';
|
||||
import { usePathname } from 'next/navigation';
|
||||
import { useAuth } from '@/lib/stores';
|
||||
import { useAuth } from '@/lib/auth/AuthContext';
|
||||
import { useLogout } from '@/lib/api/hooks/useAuth';
|
||||
import {
|
||||
DropdownMenu,
|
||||
|
||||
Reference in New Issue
Block a user