Skip to content

Commit

Permalink
Merge pull request #87 from gthomas-appfolio/componentTweaks
Browse files Browse the repository at this point in the history
gt - Tweak Alert and Paginator
  • Loading branch information
gthomas-appfolio authored Dec 15, 2016
2 parents 4ac8436 + 4df62d1 commit 54d3b81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ export default class AlertComponent extends React.Component {
}

render() {
const { color, children, dismissible, icon } = this.props;
const { color, children, className, dismissible, icon } = this.props;

return (
<Alert color={color} isOpen={this.state.visible} toggle={dismissible ? this.toggle : null}>
<Alert color={color} isOpen={this.state.visible} toggle={dismissible ? this.toggle : null} className={className || ''}>
{icon ? <Icon name={ICON_MAP[color]} className="float-left mr-2" style={{ lineHeight: 'inherit' }} /> : null}
{icon ? <div style={{ overflow: 'hidden' }}>{children}</div> : children}
</Alert>
Expand Down
3 changes: 1 addition & 2 deletions src/components/Paginator.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ export default class Paginator extends Component {
}

static defaultProps = {
perPage: DEFAULT_PER_PAGE,
size: 'lg'
perPage: DEFAULT_PER_PAGE
};

render() {
Expand Down

0 comments on commit 54d3b81

Please sign in to comment.