Refactor authentication and theme context usage
- Moved authentication hooks and context to a dedicated hooks directory. - Updated imports in various components and pages to use the new hooks. - Created AuthContext and ThemeContext for better state management. - Refactored ThemeProvider to utilize the new ThemeContext. - Cleaned up sidebar and button components for consistency and readability. - Ensured all components are using the latest context and hooks for authentication and theme management.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { AppLayout } from '@/components/AppLayout'
|
||||
import { ProtectedRoute } from '@/components/ProtectedRoute'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { AuthProvider } from '@/contexts/AuthContext'
|
||||
import { AuthProvider } from '@/components/AuthProvider'
|
||||
import { AccountPage } from '@/pages/AccountPage'
|
||||
import { ActivityPage } from '@/pages/ActivityPage'
|
||||
import { AdminUsersPage } from '@/pages/AdminUsersPage'
|
||||
|
||||
Reference in New Issue
Block a user