Skip to content

Commit

Permalink
style(utils): add width and height defaults to getTemplateIcon function
Browse files Browse the repository at this point in the history
  • Loading branch information
CompuIves committed May 20, 2023
1 parent 989f0cd commit a509749
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/common/src/utils/getTemplateIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ function getUserIcon(

if (iconUrl.startsWith('https://')) {
return ({ width, height }) => (
<img width={width} height={height} src={iconUrl} alt={templateName} />
<img
width={width || 24}
height={height || 24}
src={iconUrl}
alt={templateName}
/>
);
}

Expand Down

0 comments on commit a509749

Please sign in to comment.