Update LibraryView #9
This commit is contained in:
5 files changed
+115
-33
No files matched your search
@@ -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,
|
||||
};
|
||||
Reference in new issue
Block a user