Hotkeys and view mode kvs

This commit is contained in:
Gregory Schier
2023-03-16 09:24:28 -07:00
parent 5a6acb24d9
commit 0949de66bf
14 changed files with 239 additions and 38 deletions

View File

@@ -5,6 +5,9 @@ const Workspaces = lazy(() => import('./Workspaces'));
const Workspace = lazy(() => import('./Workspace'));
const RouteError = lazy(() => import('./RouteError'));
export const WORKSPACE_PATH = '/workspaces/:workspaceId';
export const WORKSPACE_REQUEST_PATH = '/workspaces/:workspaceId/requests/:requestId';
const router = createBrowserRouter([
{
path: '/',
@@ -15,11 +18,11 @@ const router = createBrowserRouter([
element: <Workspaces />,
},
{
path: '/workspaces/:workspaceId',
path: WORKSPACE_PATH,
element: <Workspace />,
},
{
path: '/workspaces/:workspaceId/requests/:requestId',
path: WORKSPACE_REQUEST_PATH,
element: <Workspace />,
},
],