File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,11 @@ interface IProps {
80
80
* Path to the user's image
81
81
*/
82
82
userImageSrc ?: string ;
83
+
84
+ /**
85
+ * Icon name to use for user avatar
86
+ */
87
+ userSymbol ?: string ;
83
88
}
84
89
85
90
export const ClayCardWithUser : React . FunctionComponent < IProps > = ( {
@@ -96,6 +101,7 @@ export const ClayCardWithUser: React.FunctionComponent<IProps> = ({
96
101
spritemap,
97
102
userDisplayType,
98
103
userImageSrc,
104
+ userSymbol = 'user' ,
99
105
} : IProps ) => {
100
106
const content = (
101
107
< div className = "aspect-ratio-item-center-middle card-type-asset-icon" >
@@ -112,7 +118,7 @@ export const ClayCardWithUser: React.FunctionComponent<IProps> = ({
112
118
/>
113
119
) }
114
120
{ ! userImageSrc && (
115
- < ClayIcon spritemap = { spritemap } symbol = "user" />
121
+ < ClayIcon spritemap = { spritemap } symbol = { userSymbol } />
116
122
) }
117
123
</ ClaySticker >
118
124
</ div >
You can’t perform that action at this time.
0 commit comments