Skip to content

Commit

Permalink
Updating propTypes for FA5
Browse files Browse the repository at this point in the history
  • Loading branch information
hampustagerud authored Aug 28, 2018
1 parent 22b5fa7 commit dd74389
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/create-icon-set-from-fontawesome5.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,13 @@ export function createFA5iconSet(glyphMap, metadata = {}, proVersion = false) {

function createFA5iconClass(baseClass, selectClass = iconSet => iconSet) {
class FA5iconClass extends PureComponent {
static propTypes = Object.create(baseClass.propTypes, {
light: PropTypes.bool,
solid: PropTypes.bool,
});
static propTypes = [
baseClass.propTypes,
{
light: PropTypes.bool,
solid: PropTypes.bool,
},
];

static defaultProps = {
light: false,
Expand Down

0 comments on commit dd74389

Please sign in to comment.