Fixed button with image

Signed-off-by: Florian BOUILLON <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2021-05-18 11:00:24 +02:00
parent e5d8592186
commit a177e239c6

View File

@ -34,7 +34,7 @@ export default class Button extends React.Component<Props> {
inner = (
<>
{typeof Icon === 'string' ? (
<Image parentClassName={css.img} src={Icon} width={16} height={16} />
<Image imageProps={{src: Icon, width: 16, height: 16, className: css.img}} />
) : (
<Icon size={this.props.size === 'large' ? 20 : this.props.size === 'small' ? 14 : 16} />
)}