File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ type CatalogCardProps = {
38
38
cardWidth : string ;
39
39
cardStyles : React . CSSProperties ;
40
40
type : string ;
41
+ onCardClick ?: ( ) => void ;
41
42
} ;
42
43
43
44
export const ClassToIconMap = {
@@ -63,15 +64,16 @@ const CatalogCard: React.FC<CatalogCardProps> = ({
63
64
cardHeight,
64
65
cardWidth,
65
66
cardStyles,
66
- cardLink
67
+ cardLink,
68
+ onCardClick
67
69
} ) => {
68
70
const outerStyles = {
69
71
height : cardHeight ,
70
72
width : cardWidth ,
71
73
...cardStyles
72
74
} ;
73
75
return (
74
- < DesignCardUrl href = { cardLink } target = "_blank" rel = "noreferrer" >
76
+ < DesignCardUrl href = { cardLink } onClick = { onCardClick } target = "_blank" rel = "noreferrer" >
75
77
< DesignCard outerStyles = { outerStyles } >
76
78
< DesignInnerCard className = "innerCard" >
77
79
< ClassWrap catalogClassName = { pattern ?. catalog_data ?. content_class } />
You can’t perform that action at this time.
0 commit comments