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

Fix removeDuplicate and typo style

parent ab462f10
Branches
Tags
1 merge request!13Manifest side to side
This commit is part of merge request !13. Comments created here will be created in the context of that merge request.
......@@ -127,7 +127,7 @@ export class AnnotationManifestsAccordion extends Component {
<Card className={classes.root}>
<CardActionArea>
<CardContent>
<Typography gutterBottom variant="h5" component="h2">
<Typography>
{ manifest.label ? manifest.label[language] : manifest.id }
</Typography>
</CardContent>
......
......
......@@ -70,11 +70,15 @@ const styles = theme => ({
marginTop: theme.spacing(1),
},
hovered: {},
manifestLabel: {
fontSize: '10px',
},
sectionHeading: {
paddingLeft: theme.spacing(2),
paddingRight: theme.spacing(1),
paddingTop: theme.spacing(2),
},
});
const enhance = compose(
......
......
......@@ -2,11 +2,4 @@
* Remove duplicate elements in array
*
* */
export const removeDuplicates = (arr) => {
return arr.reduce((acc, curr) => {
if (!acc.includes(curr)) {
acc.push(curr);
}
return acc;
}, []);
};
export const removeDuplicates = (arr) => [...new Map(arr.map(v => [v.id, v])).values()];
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment