Skip to content

Commit

Permalink
Merge pull request #297 from meaningfy-ws/feature/MWB-794-bis
Browse files Browse the repository at this point in the history
Updates
  • Loading branch information
kaleanych authored Sep 17, 2024
2 parents 61dd003 + d414487 commit 7b6f628
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ const Page = () => {
<FileResourceCollectionsCard
collectionApi={testDataSuitesApi}
filters={{
mapping_package_id: item.id
mapping_package_id: item._id
}}
/>
<Divider sx={{m: 3}}/>
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -137,9 +135,10 @@ const Page = () => {
lg={12}
>
<FileCollectionBasicDetails
id={item.id}
id={item._id}
title={item.title}
description={item.description}
sectionApi={sectionApi}
/>
</Grid>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -140,7 +138,7 @@ const Page = () => {
id={item._id}
title={item.title}
description={item.description}
sectionApi={sectionApi.section}
sectionApi={sectionApi}
/>
</Grid>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -137,9 +135,10 @@ const Page = () => {
lg={12}
>
<FileCollectionBasicDetails
id={item.id}
id={item._id}
title={item.title}
description={item.description}
sectionApi={sectionApi}
/>
</Grid>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const Page = () => {
id={item._id}
title={item.title}
description={item.description}
sectionApi={sectionApi.section}
sectionApi={sectionApi}
/>
</Grid>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -137,9 +135,10 @@ const Page = () => {
lg={12}
>
<FileCollectionBasicDetails
id={item.id}
id={item._id}
title={item.title}
description={item.description}
sectionApi={sectionApi}
/>
</Grid>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const Page = () => {
id={item._id}
title={item.title}
description={item.description}
sectionApi={sectionApi.section}
sectionApi={sectionApi}
/>
</Grid>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,10 @@ const Page = () => {
lg={12}
>
<FileCollectionBasicDetails
id={item.id}
id={item._id}
title={item.title}
description={item.description}
sectionApi={sectionApi}
/>
</Grid>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const Page = () => {
id={item._id}
title={item.title}
description={item.description}
sectionApi={sectionApi.section}
sectionApi={sectionApi}
/>
</Grid>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const ItemListRow = (props) => {
return (
<>
<TableRow
key={item.id}
key={item._id}
sx={{
backgroundColor: 'transparent',
borderRadius: 1.5,
Expand Down

0 comments on commit 7b6f628

Please sign in to comment.