Skip to content
Snippets Groups Projects
Commit 011e4a30 authored by Anthony's avatar Anthony
Browse files

Improve edit list displaying

parent 5166ae75
No related branches found
No related tags found
1 merge request!10Draft: MigratingAnnotationCreation to MUI5.
Pipeline #1904 failed
......@@ -5,21 +5,20 @@ import React from 'react';
import Typography from '@mui/material/Typography';
import PropTypes from 'prop-types';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import Button from "@mui/material/Button";
import DeleteIcon from "@mui/icons-material/DeleteForever";
import Button from '@mui/material/Button';
import DeleteIcon from '@mui/icons-material/DeleteForever';
function AccordionShapes({ shapes, deleteShape }) {
function AccordionShapes({ shapes, deleteShape, currentShapeId }) {
return (
<Paper>
{shapes.map((shape) => (
<Accordion>
<Accordion style={shape.id === currentShapeId ? { fontWeight: 'bold' } : {}}>
<AccordionSummary
expandIcon={<ExpandMoreIcon />}
aria-controls="panel1-content"
id="panel1-header"
>
<Typography>{shape.id}</Typography>
{shape.id}
</AccordionSummary>
<AccordionDetails>
<ul>
......
......@@ -61,7 +61,7 @@ function AnnotationFormOverlayTool({
currentShape && (
<Paper>
<Typography variant="overline">
Forme selectionné
Forme selectionnée
</Typography>
<ul>
......@@ -77,6 +77,7 @@ function AnnotationFormOverlayTool({
)
}
<AccordionShapes
currentShapeId={currentShape?.id}
shapes={shapes}
deleteShape={deleteShape}
/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment