/** * App.tsx - Router Configuration Example * * This is an example App.tsx showing how to integrate the auth pages * Copy this content to your App.tsx after installing dependencies * * Dependencies required: * npm install zod @hookform/resolvers */ import React from 'react'; import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom'; import { AuthProvider } from '@/app/providers/AuthContext'; import { LoginPage, RegisterPage, ForgotPasswordPage } from '@/pages/auth'; import ProtectedRoute from '@/shared/components/ProtectedRoute'; import { useAuth } from '@/app/providers/AuthContext'; /** * Temporary Dashboard Component * Replace this with your actual Dashboard component */ const DashboardPage: React.FC = () => { const { user, logout } = useAuth(); return (
Welcome to GAMILIT!
You are successfully logged in as: {user?.email}
{user?.id}
{user?.role}
{user?.isActive ? 'Active' : 'Inactive'}