Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DPO3DPKRT-755/show EDAN subject id on ingest #588

Merged
merged 2 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function SubjectList(props: SubjectListProps): React.ReactElement {
const [addSubject, removeSubject] = useSubjectStore(state => [state.addSubject, state.removeSubject]);
const classes = useStyles();

const header: string[] = ['ARK / ID', 'UNIT', 'NAME'];
const header: string[] = ['ARK / ID', 'UNIT', 'NAME', 'ID'];

const getSubjectList = ({ id, arkId, unit, name, collectionId }: StateSubject, index: number) => (
<SubjectListItem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,14 @@ function SubjectListItem(props: SubjectListItemProps): React.ReactElement {
<Typography className={classes.label} variant='caption'>{unit}</Typography>
</TableCell>
<TableCell style={cellStyle} align='left'>
<Box display='flex' flexDirection='row' alignItems='center'>
<Typography className={classes.label} variant='caption'>{name}</Typography>
<Box className={classes.options}>
{selected ? <MdRemoveCircleOutline className={classes.option} onClick={remove} size={20} /> : <MdAddCircleOutline className={classes.option} onClick={add} size={20} />}
</Box>
<Typography className={classes.label} variant='caption'>{name}</Typography>
</TableCell>
<TableCell style={cellStyle} align='left'>
<Typography className={classes.label} variant='caption'>{collectionId}</Typography>
</TableCell>
<TableCell style={cellStyle} align='left'>
<Box className={classes.options}>
{selected ? <MdRemoveCircleOutline className={classes.option} onClick={remove} size={20} /> : <MdAddCircleOutline className={classes.option} onClick={add} size={20} />}
</Box>
</TableCell>
</TableRow>
Expand Down
Loading