feat: Add voice management functionality with delete capability and UI integration

This commit is contained in:
2026-03-06 14:35:59 +08:00
parent ad90e5f96c
commit 964ebb824c
17 changed files with 224 additions and 21 deletions

View File

@@ -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>