diff --git a/src/pages/Documents/index.jsx b/src/pages/Documents/index.jsx index 3b2e2ba..b7eacc1 100644 --- a/src/pages/Documents/index.jsx +++ b/src/pages/Documents/index.jsx @@ -1,9 +1,10 @@ +import { join } from 'path' import { memo } from 'react' import { Layout, Menu } from 'antd' import { FolderOutlined } from '@ant-design/icons' import { Switch, useParams } from 'react-router-dom' -import { PrivateDefaultRoute, PrivateMenuItem, PrivateRoute } from '@components/Private' +import { PrivateDefaultRoute, PrivateMenuItemLink, PrivateRoute } from '@components/Private' import DocumentsTemplate from './DocumentsTemplate' @@ -30,7 +31,7 @@ export const MenuDocuments = memo(({ idWell }) => { <> {documentCategories.map(category => ( - { {documentCategories.map(category => ( - - + + ))} - `${root}/${cat.key}`)}/> + join(root, cat.key))}/> diff --git a/src/pages/Well.jsx b/src/pages/Well.jsx index 170ab62..618eb69 100644 --- a/src/pages/Well.jsx +++ b/src/pages/Well.jsx @@ -61,10 +61,10 @@ export const Well = memo(() => { - + - +