feat: Toolbar Header

This commit is contained in:
Rodrigo Antinarelli authored and James A. Petts committed 2020-05-15 13:46:44 +02:00
1 parent f8bbee22b7
commit b3dff5ddee
11 files changed
+208 -17

No files matched your search

@@ -87,6 +87,7 @@ const IconButton = ({
disabled = defaults.disabled,
type = defaults.type,
fullWidth = defaults.fullWidth,
onClick,
className,
...rest
}) => {
@@ -94,8 +95,8 @@ const IconButton = ({
const handleOnClick = (e) => {
buttonElement.current.blur();
if (rest.onClick) {
rest.onClick(e);
if (onClick) {
onClick(e);
}
};
@@ -138,6 +139,7 @@ IconButton.propTypes = {
disabled: PropTypes.bool,
type: PropTypes.string,
className: PropTypes.node,
onClick: PropTypes.func,
};
export default IconButton;