Skip to content

Commit 860ddcf

Browse files
committed
fix: Now made the click handler on the icon wrapper
1 parent 9c8b124 commit 860ddcf

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

components/utils/ShapeList.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -347,24 +347,26 @@ const ShapeList = ({ setOpen, user, data }) => {
347347
/>
348348
<ShapeActions className="shape-actions">
349349
<ShapeActionsContainer>
350-
<span title="Like">
350+
<span
351+
title="Like"
352+
onClick={(event, shapeId) => performLike(event, shape['shape_id'])}>
351353
{
352354
shape.liked ?
353-
(<Button variant="outline-light"><LikeFilledIcon
354-
size={24}
355-
onClick={(event, shapeId) => performLike(event, shape['shape_id'])}/></Button>)
355+
(<Button variant="outline-light">
356+
<LikeFilledIcon size={24} />
357+
</Button>
358+
)
356359
:
357-
(<Button variant="outline-light"><LikeIcon
358-
size={24}
359-
onClick={(event, shapeId) => performLike(event, shape['shape_id'])}/></Button>)
360+
(<Button variant="outline-light">
361+
<LikeIcon size={24} />
362+
</Button>
363+
)
360364
}
361365

362366
</span>{" "}
363-
<Button title="Export" variant="outline-light">
367+
<Button title="Export" variant="outline-light" onClick={() => performExport(shape)}>
364368
<ExportIcon
365-
size={24}
366-
onClick={() => performExport(shape)}
367-
/>
369+
size={24} />
368370
</Button>
369371
</ShapeActionsContainer>
370372
</ShapeActions>

0 commit comments

Comments
 (0)