Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ import {
NewPassword,
ForgotPassword,
} from '@/features/auth/components'
import InterviewerSchedule from '@/components/interviewerSchedule'
import AdminDashboard2 from '@/components/dashboards/AdminDashboard2'
import JoinATeam from '@/components/JoinATeam'
import CreateOrJoinTeam from '@/components/CreateOrJoinTeam'
import InterviewerAvailability from '@/components/InterviewerAvailability'
import { AuthProvider } from '@/provider/AuthProvider'
import AdminDashboard from '@/components/dashboards/AdminDashboard'
import InterviewerDashboard from '@/components/dashboards/InterviewerDashboard'
import CandidateDashboard from '@/components/dashboards/CandidateDashboard'
import AdminSettings from './components/AdminSettings'

function App() {
return (
Expand All @@ -32,17 +33,18 @@ function App() {
<Route path="/status" element={<StatusDashboard />} />
<Route path="/signup" element={<SignupForm />} />
<Route path="/signin" element={<SigninForm />} />
<Route path="/interviewer-schedule" element={<InterviewerSchedule />} />
<Route path="/joinateam" element={<JoinATeam />} />
<Route path="/create-or-join-team" element={<CreateOrJoinTeam />} />
<Route path="/new-password-made" element={<NewPasswordMade />} />
<Route path="/2fa" element={<TwoFactorAuth />} />
<Route path="/new-password" element={<NewPassword />} />
<Route path="/forgot-password" element={<ForgotPassword />} />
<Route path="/interviewer-availability" element={<InterviewerAvailability />} />
<Route path="/admin-settings" element={<AdminSettings />} />

{/* Role-Based Dashboards - Protected */}
<Route path="/admin/dashboard" element={<ProtectedRoute><AdminDashboard /></ProtectedRoute>} />
<Route path="/admin/dashboard2" element={<AdminDashboard2 />} />
<Route path="/interviewer/dashboard" element={<ProtectedRoute><InterviewerDashboard /></ProtectedRoute>} />
<Route path="/candidate/dashboard" element={<ProtectedRoute><CandidateDashboard /></ProtectedRoute>} />

Expand Down
Loading