Pass through Button.Or className (#48)

This commit is contained in:
Jaco Greeff 2018-05-12 20:38:19 +02:00 committed by GitHub
parent 410a3be007
commit 62279af6b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,13 +18,17 @@ type Props = I18nProps & {
function ButtonOr ({ className, style, t, text }: Props): React$Node {
return (
<SUIButton.Or text={
isUndefined(text)
? t('button.or', {
defaultValue: 'or'
})
: text
} />
<SUIButton.Or
className={className}
style={style}
text={
isUndefined(text)
? t('button.or', {
defaultValue: 'or'
})
: text
}
/>
);
}