Commit 69b0644d authored by Yannis Barlas's avatar Yannis Barlas
Browse files

Merge branch 'fix-icon-button' into 'master'

fix(ui): fix icon button running onclick twice

See merge request !699
parents 063c1b2e 51f811aa
Pipeline #16382 canceled with stages
......@@ -11,8 +11,8 @@ const ButtonTitle = styled.span`
vertical-align: middle;
`
const IconButton = ({ icon, children, iconPosition, ...props }) => (
<Button {...props}>
const IconButton = ({ icon, children, iconPosition, onClick, ...props }) => (
<Button onClick={onClick} {...props}>
{children && iconPosition === 'end' && (
<ButtonTitle>{children}</ButtonTitle>
)}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment