Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
fix(Button): renderIcon prop (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
levithomason authored Oct 10, 2018
1 parent 9d9ab58 commit 3421c5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

## [Unreleased]

### Fixes
- Fix Button's `renderIcon` prop @levithomason ([#347](https://github.com/stardust-ui/react/pull/347))

### Features
- Make `content` to be a shorthand prop for `Popup` @kuzhelov ([#322](https://github.com/stardust-ui/react/pull/322))
- Add generic `Slot` component (used internally) and use it as shorthand for `Button` `content` prop @Bugaa92 ([#335](https://github.com/stardust-ui/react/pull/335))
Expand Down
2 changes: 1 addition & 1 deletion src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ class Button extends UIComponent<Extendable<IButtonProps>, IButtonState> {
styles: styles.icon,
xSpacing: !content ? 'none' : iconPosition === 'after' ? 'before' : 'after',
variables: variables.icon,
render: renderIcon,
},
render: renderIcon,
})
}

Expand Down

0 comments on commit 3421c5e

Please sign in to comment.