diff --git a/mapping_workbench/frontend/src/pages/app/mapping-packages/[id]/view.js b/mapping_workbench/frontend/src/pages/app/mapping-packages/[id]/view.js index 65765dc42..2480c9104 100644 --- a/mapping_workbench/frontend/src/pages/app/mapping-packages/[id]/view.js +++ b/mapping_workbench/frontend/src/pages/app/mapping-packages/[id]/view.js @@ -222,7 +222,7 @@ const Page = () => { diff --git a/mapping_workbench/frontend/src/pages/app/shacl-test-suites/[id]/resource-manager/[fid]/view.js b/mapping_workbench/frontend/src/pages/app/shacl-test-suites/[id]/resource-manager/[fid]/view.js index 60c215588..8334c3448 100644 --- a/mapping_workbench/frontend/src/pages/app/shacl-test-suites/[id]/resource-manager/[fid]/view.js +++ b/mapping_workbench/frontend/src/pages/app/shacl-test-suites/[id]/resource-manager/[fid]/view.js @@ -1,8 +1,6 @@ import {useCallback, useState} from 'react'; import ArrowLeftIcon from '@untitled-ui/icons-react/build/esm/ArrowLeft'; -import Box from '@mui/material/Box'; import Chip from '@mui/material/Chip'; -import Container from '@mui/material/Container'; import Divider from '@mui/material/Divider'; import Grid from '@mui/material/Unstable_Grid2'; import Link from '@mui/material/Link'; @@ -137,9 +135,10 @@ const Page = () => { lg={12} > diff --git a/mapping_workbench/frontend/src/pages/app/shacl-test-suites/[id]/view.js b/mapping_workbench/frontend/src/pages/app/shacl-test-suites/[id]/view.js index c775f7867..8334c3448 100644 --- a/mapping_workbench/frontend/src/pages/app/shacl-test-suites/[id]/view.js +++ b/mapping_workbench/frontend/src/pages/app/shacl-test-suites/[id]/view.js @@ -1,8 +1,6 @@ import {useCallback, useState} from 'react'; import ArrowLeftIcon from '@untitled-ui/icons-react/build/esm/ArrowLeft'; -import Box from '@mui/material/Box'; import Chip from '@mui/material/Chip'; -import Container from '@mui/material/Container'; import Divider from '@mui/material/Divider'; import Grid from '@mui/material/Unstable_Grid2'; import Link from '@mui/material/Link'; @@ -140,7 +138,7 @@ const Page = () => { id={item._id} title={item.title} description={item.description} - sectionApi={sectionApi.section} + sectionApi={sectionApi} /> diff --git a/mapping_workbench/frontend/src/pages/app/sparql-test-suites/[id]/resource-manager/[fid]/view.js b/mapping_workbench/frontend/src/pages/app/sparql-test-suites/[id]/resource-manager/[fid]/view.js index 3ecdf3911..c89cbfa02 100644 --- a/mapping_workbench/frontend/src/pages/app/sparql-test-suites/[id]/resource-manager/[fid]/view.js +++ b/mapping_workbench/frontend/src/pages/app/sparql-test-suites/[id]/resource-manager/[fid]/view.js @@ -1,8 +1,6 @@ import {useCallback, useState} from 'react'; import ArrowLeftIcon from '@untitled-ui/icons-react/build/esm/ArrowLeft'; -import Box from '@mui/material/Box'; import Chip from '@mui/material/Chip'; -import Container from '@mui/material/Container'; import Divider from '@mui/material/Divider'; import Grid from '@mui/material/Unstable_Grid2'; import Link from '@mui/material/Link'; @@ -137,9 +135,10 @@ const Page = () => { lg={12} > diff --git a/mapping_workbench/frontend/src/pages/app/sparql-test-suites/[id]/view.js b/mapping_workbench/frontend/src/pages/app/sparql-test-suites/[id]/view.js index 93f016b1e..6bbed0e84 100644 --- a/mapping_workbench/frontend/src/pages/app/sparql-test-suites/[id]/view.js +++ b/mapping_workbench/frontend/src/pages/app/sparql-test-suites/[id]/view.js @@ -140,7 +140,7 @@ const Page = () => { id={item._id} title={item.title} description={item.description} - sectionApi={sectionApi.section} + sectionApi={sectionApi} /> diff --git a/mapping_workbench/frontend/src/pages/app/test-data-suites/[id]/resource-manager/[fid]/view.js b/mapping_workbench/frontend/src/pages/app/test-data-suites/[id]/resource-manager/[fid]/view.js index 09cdf6dc0..fdc579fa3 100644 --- a/mapping_workbench/frontend/src/pages/app/test-data-suites/[id]/resource-manager/[fid]/view.js +++ b/mapping_workbench/frontend/src/pages/app/test-data-suites/[id]/resource-manager/[fid]/view.js @@ -1,8 +1,6 @@ import {useCallback, useState} from 'react'; import ArrowLeftIcon from '@untitled-ui/icons-react/build/esm/ArrowLeft'; -import Box from '@mui/material/Box'; import Chip from '@mui/material/Chip'; -import Container from '@mui/material/Container'; import Divider from '@mui/material/Divider'; import Grid from '@mui/material/Unstable_Grid2'; import Link from '@mui/material/Link'; @@ -137,9 +135,10 @@ const Page = () => { lg={12} > diff --git a/mapping_workbench/frontend/src/pages/app/test-data-suites/[id]/view.js b/mapping_workbench/frontend/src/pages/app/test-data-suites/[id]/view.js index 928e670ae..6b02952b6 100644 --- a/mapping_workbench/frontend/src/pages/app/test-data-suites/[id]/view.js +++ b/mapping_workbench/frontend/src/pages/app/test-data-suites/[id]/view.js @@ -139,7 +139,7 @@ const Page = () => { id={item._id} title={item.title} description={item.description} - sectionApi={sectionApi.section} + sectionApi={sectionApi} /> diff --git a/mapping_workbench/frontend/src/pages/app/value-mapping-resources/[id]/resource-manager/[fid]/view.js b/mapping_workbench/frontend/src/pages/app/value-mapping-resources/[id]/resource-manager/[fid]/view.js index fa27c6bbc..2b3b0d5d4 100644 --- a/mapping_workbench/frontend/src/pages/app/value-mapping-resources/[id]/resource-manager/[fid]/view.js +++ b/mapping_workbench/frontend/src/pages/app/value-mapping-resources/[id]/resource-manager/[fid]/view.js @@ -137,9 +137,10 @@ const Page = () => { lg={12} > diff --git a/mapping_workbench/frontend/src/pages/app/value-mapping-resources/[id]/view.js b/mapping_workbench/frontend/src/pages/app/value-mapping-resources/[id]/view.js index a3ad71537..4cbf8b36a 100644 --- a/mapping_workbench/frontend/src/pages/app/value-mapping-resources/[id]/view.js +++ b/mapping_workbench/frontend/src/pages/app/value-mapping-resources/[id]/view.js @@ -165,7 +165,7 @@ const Page = () => { id={item._id} title={item.title} description={item.description} - sectionApi={sectionApi.section} + sectionApi={sectionApi} /> diff --git a/mapping_workbench/frontend/src/sections/app/file-manager/file-collection-basic-details.js b/mapping_workbench/frontend/src/sections/app/file-manager/file-collection-basic-details.js index a2dd4bcb5..2ff369d04 100644 --- a/mapping_workbench/frontend/src/sections/app/file-manager/file-collection-basic-details.js +++ b/mapping_workbench/frontend/src/sections/app/file-manager/file-collection-basic-details.js @@ -18,15 +18,13 @@ import {useRouter} from "../../../hooks/use-router"; export const FileCollectionBasicDetails = (props) => { const { id, name, title, description, sectionApi, version, ...other } = props; const router = useRouter(); - const section = props.sectionApi; + const section = sectionApi.section; let editCustomPathName = ""; let deleteCutomPathName = ""; //const itemctx = new ForListItemAction(id, testDataSuitesApi); let itemctx = {}; - //console.log("section: ", section); - //console.log("ID: ", id); switch(section) { case 'test_data_suites': diff --git a/mapping_workbench/frontend/src/sections/app/file-manager/file-resource-collections-card.js b/mapping_workbench/frontend/src/sections/app/file-manager/file-resource-collections-card.js index 0332e0b7e..e4280f2e4 100644 --- a/mapping_workbench/frontend/src/sections/app/file-manager/file-resource-collections-card.js +++ b/mapping_workbench/frontend/src/sections/app/file-manager/file-resource-collections-card.js @@ -22,7 +22,6 @@ import {tokens} from "../../../locales/tokens"; export const FileResourceCollectionsCard = (props) => { const {collectionApi, filters = {}, ...other} = props; const {t} = useTranslation(); - const collectionTitle = t(tokens.nav[collectionApi.section]); const collectionPath = paths.app[collectionApi.section].index; diff --git a/mapping_workbench/frontend/src/sections/app/file-manager/item-list-row.js b/mapping_workbench/frontend/src/sections/app/file-manager/item-list-row.js index 967c9cacd..6e19a4965 100644 --- a/mapping_workbench/frontend/src/sections/app/file-manager/item-list-row.js +++ b/mapping_workbench/frontend/src/sections/app/file-manager/item-list-row.js @@ -36,7 +36,7 @@ export const ItemListRow = (props) => { return ( <>