larxius commited on
Commit
94c8343
·
verified ·
1 Parent(s): 2a9cdb1

Update frontend/src/App.jsx

Browse files
Files changed (1) hide show
  1. frontend/src/App.jsx +3 -0
frontend/src/App.jsx CHANGED
@@ -23,6 +23,7 @@ const OrganizationPage = React.lazy(() => import('./pages/OrganizationPage').the
23
  const LogsAndThreats = React.lazy(() => import('./pages/LogsAndThreats'));
24
  const Profile = React.lazy(() => import('./pages/Profile'));
25
  const Help = React.lazy(() => import('./pages/Help').then(module => ({ default: module.Help })));
 
26
 
27
  function App() {
28
  return (
@@ -44,6 +45,8 @@ function App() {
44
  <Route path="/login" element={<Login />} />
45
  <Route path="/register" element={<Register />} />
46
  <Route path="/pricing" element={<Layout><Pricing /></Layout>} />
 
 
47
 
48
  <Route element={<ProtectedRoute />}>
49
  <Route path="/dashboard" element={<Layout><Dashboard /></Layout>} />
 
23
  const LogsAndThreats = React.lazy(() => import('./pages/LogsAndThreats'));
24
  const Profile = React.lazy(() => import('./pages/Profile'));
25
  const Help = React.lazy(() => import('./pages/Help').then(module => ({ default: module.Help })));
26
+ const LegalPage = React.lazy(() => import('./pages/LegalPage').then(module => ({ default: module.LegalPage })));
27
 
28
  function App() {
29
  return (
 
45
  <Route path="/login" element={<Login />} />
46
  <Route path="/register" element={<Register />} />
47
  <Route path="/pricing" element={<Layout><Pricing /></Layout>} />
48
+ <Route path="/legal" element={<Navigate to="/legal/terms" replace />} />
49
+ <Route path="/legal/:policyId" element={<Layout><LegalPage /></Layout>} />
50
 
51
  <Route element={<ProtectedRoute />}>
52
  <Route path="/dashboard" element={<Layout><Dashboard /></Layout>} />