feat(dashboard): route settings and access
This commit is contained in:
1 parent
79de6aa2a1
commit
70d62b2da3
2 files changed
+2
-17
No files matched your search
@@ -1,11 +1,11 @@
|
||||
import { createBrowserRouter, type RouteObject } from 'react-router-dom';
|
||||
import { AppShell } from './app-shell.js';
|
||||
import { OverviewPage } from '../features/overview/overview-page.js';
|
||||
import { PlaceholderPage } from '../features/placeholder-page.js';
|
||||
import { ConversationRoute } from '../features/conversations/conversation-route.js';
|
||||
import { MediaPage } from '../features/media/media-page.js';
|
||||
import { OperationsPage } from '../features/operations/operations-page.js';
|
||||
import { PerformancePage } from '../features/performance/performance-page.js';
|
||||
import { SettingsRoute } from '../features/settings/settings-route.js';
|
||||
|
||||
export function createDashboardRoutes(): RouteObject[] {
|
||||
return [
|
||||
@@ -19,7 +19,7 @@ export function createDashboardRoutes(): RouteObject[] {
|
||||
{ path: 'media', element: <MediaPage /> },
|
||||
{ path: 'performance', element: <PerformancePage /> },
|
||||
{ path: 'operations', element: <OperationsPage /> },
|
||||
{ path: 'settings', element: <PlaceholderPage title="Settings" description="Manage runtime behavior and Reddit access." /> },
|
||||
{ path: 'settings', element: <SettingsRoute /> },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
interface PlaceholderPageProps {
|
||||
title: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
export function PlaceholderPage({ title, description }: PlaceholderPageProps) {
|
||||
return (
|
||||
<div className="page">
|
||||
<header className="page-header">
|
||||
<div><span className="eyebrow">Workspace</span><h1>{title}</h1><p>{description}</p></div>
|
||||
</header>
|
||||
<section className="panel empty-state"><strong>{title} workspace</strong><span>This route is ready for its feature module.</span></section>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user