File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ import React from 'react'
10
10
import ReactDOM from 'react-dom/client'
11
11
import { Route , Routes } from 'react-router-dom'
12
12
13
+ import { ViewPage } from 'pages/view'
14
+
13
15
import { App } from './App'
14
16
import { AppLayout } from './layouts/AppLayout'
15
17
import { NotFoundPage } from './pages/404'
@@ -52,6 +54,7 @@ ReactDOM.createRoot(document.getElementById('root')!).render(
52
54
< Route path = "/" element = { < IndexPage /> } />
53
55
< Route path = "/create/:id" element = { < CreatePage /> } />
54
56
< Route path = "/create" element = { < CreatePage /> } />
57
+ < Route path = "/operation/:id" element = { < ViewPage /> } />
55
58
< Route path = "/account/activation" element = { < AccountActivatePage /> } />
56
59
< Route path = "*" element = { < NotFoundPage /> } />
57
60
</ Routes >
Original file line number Diff line number Diff line change
1
+ import { useParams } from 'react-router-dom'
2
+
3
+ import { OperationViewer } from 'components/viewer/OperationViewer'
4
+
5
+ export const ViewPage = ( ) => {
6
+ const { id } = useParams ( )
7
+ if ( ! id ) throw 'empty'
8
+ return < OperationViewer operationId = { id } onCloseDrawer = { ( ) => { } } />
9
+ }
You can’t perform that action at this time.
0 commit comments