feat: Add voice management functionality with delete capability and UI integration
This commit is contained in:
@@ -15,6 +15,7 @@ const Login = lazy(() => import('@/pages/Login'))
|
||||
const Home = lazy(() => import('@/pages/Home'))
|
||||
const Settings = lazy(() => import('@/pages/Settings'))
|
||||
const UserManagement = lazy(() => import('@/pages/UserManagement'))
|
||||
const VoiceManagement = lazy(() => import('@/pages/VoiceManagement'))
|
||||
|
||||
function ProtectedRoute({ children }: { children: React.ReactNode }) {
|
||||
const { isAuthenticated, isLoading } = useAuth()
|
||||
@@ -100,6 +101,14 @@ function App() {
|
||||
</SuperAdminRoute>
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="/voices"
|
||||
element={
|
||||
<ProtectedRoute>
|
||||
<VoiceManagement />
|
||||
</ProtectedRoute>
|
||||
}
|
||||
/>
|
||||
</Routes>
|
||||
</Suspense>
|
||||
</UserPreferencesProvider>
|
||||
|
||||
Reference in New Issue
Block a user