Another large update for all components
reorganization, linting, updating file imports, consolidation warning: there will be errors in this commit todo: update webpack, add missing styles, scss files, consolidate group page components.
This commit is contained in:
@@ -22,6 +22,7 @@ export default class IconButton extends PureComponent {
|
||||
animate: PropTypes.bool,
|
||||
overlay: PropTypes.bool,
|
||||
tabIndex: PropTypes.string,
|
||||
text: PropTypes.string,
|
||||
};
|
||||
|
||||
static defaultProps = {
|
||||
@@ -62,6 +63,7 @@ export default class IconButton extends PureComponent {
|
||||
pressed,
|
||||
tabIndex,
|
||||
title,
|
||||
text,
|
||||
} = this.props;
|
||||
|
||||
const classes = classNames(className, 'icon-button', {
|
||||
@@ -86,6 +88,7 @@ export default class IconButton extends PureComponent {
|
||||
disabled={disabled}
|
||||
>
|
||||
<Icon id={icon} fixedWidth aria-hidden='true' />
|
||||
{!!text && text}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
@@ -105,6 +108,7 @@ export default class IconButton extends PureComponent {
|
||||
disabled={disabled}
|
||||
>
|
||||
<Icon id={icon} style={{ transform: `rotate(${rotate}deg)` }} fixedWidth aria-hidden='true' />
|
||||
{!!text && text}
|
||||
</button>
|
||||
)}
|
||||
</Motion>
|
||||
|
||||
Reference in New Issue
Block a user