Update LibraryView #9

This commit is contained in:
prayag17 committed 2023-04-04 18:23:52 +05:30
1 parent ee524b57c7
commit 7cba5a39f6
5 files changed
+115 -33

No files matched your search

+5 -1
View File
@@ -28,6 +28,7 @@ export const Card = ({
playedPercent,
cardOrientation,
props,
onClickEvent,
}) => {
return (
<MuiCard
@@ -40,7 +41,9 @@ export const Card = ({
elevation={0}
{...props}
>
<CardActionArea>
<CardActionArea
onClick={!!onClickEvent ? onClickEvent : () => {}}
>
<Box
className="card-media-container"
sx={{
@@ -172,4 +175,5 @@ Card.propTypes = {
subText: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
playedPercent: PropTypes.number,
cardOrientation: PropTypes.string.isRequired,
onClickEvent: PropTypes.func,
};