mirror of
https://github.com/dzeiocom/components.git
synced 2025-06-07 16:49:55 +00:00
Fixed button with image
Signed-off-by: Florian BOUILLON <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
e5d8592186
commit
a177e239c6
@ -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} />
|
||||
)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user