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:
mgabdev
2019-08-09 12:06:27 -04:00
parent 280dc51d85
commit 3d509c84a2
183 changed files with 4802 additions and 2361 deletions

View File

@@ -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>