Unverified Commit 92c67d86 authored by gabriellsh's avatar gabriellsh Committed by GitHub

fix: ActionButton not accepting children (#345)

parent 273e8cf8
......@@ -19,8 +19,11 @@ const getSize = ({ tiny, mini, small }) => {
return 'x20';
};
export const ActionButton = React.forwardRef(({ icon, ...props }, ref) => (
<Button ref={ref} square flexShrink={0} {...props}>
<Icon name={icon} size={getSize(props)} />
</Button>
));
export const ActionButton = React.forwardRef(
({ icon, children, ...props }, ref) => (
<Button ref={ref} square flexShrink={0} {...props}>
{children}
<Icon name={icon} size={getSize(props)} />
</Button>
)
);
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