diff --git a/src/ui/component/button/view.jsx b/src/ui/component/button/view.jsx index effdef03b..f34e0cf7e 100644 --- a/src/ui/component/button/view.jsx +++ b/src/ui/component/button/view.jsx @@ -22,6 +22,7 @@ type Props = { type: string, button: ?string, // primary, secondary, alt, link iconSize?: number, + iconColor?: string, constrict: ?boolean, // to shorten the button and ellipsis, only use for links activeClass?: string, innerRef: ?any, @@ -51,6 +52,7 @@ const Button = forwardRef((props: Props, ref: any) => { description, button, iconSize, + iconColor, constrict, activeClass, ...otherProps @@ -75,10 +77,10 @@ const Button = forwardRef((props: Props, ref: any) => { const content = ( - {icon && } + {icon && } {label && {label}} {children && children} - {iconRight && } + {iconRight && } );