fix icon size

Summary: Icon size passed to a button was ignored.

Reviewed By: passy

Differential Revision: D10301573

fbshipit-source-id: 00117a35622bbd490b74359f52ecc07929390205
This commit is contained in:
Daniel Büchele
2018-10-10 10:29:01 -07:00
committed by Facebook Github Bot
parent a379b18f64
commit f7cb4667c4
2 changed files with 5 additions and 5 deletions

View File

@@ -326,7 +326,7 @@ class Button extends React.Component<
iconComponent = (
<Icon
name={icon}
size={iconSize || this.props.compact === true ? 12 : 16}
size={iconSize || (this.props.compact === true ? 12 : 16)}
color={color}
variant={iconVariant || 'filled'}
hasText={Boolean(children)}