Created
October 27, 2016 06:09
-
-
Save blackfry/d26aecf585c692b91eda57c769773378 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FavouriteIcon extends Component { | |
constructor(props) { | |
super(props); | |
FavouriteIcon.defaultProps = { | |
style: { | |
position: 'relative', | |
top: 1, | |
color: 'grey', | |
fontSize: '26px' | |
} | |
} | |
} | |
render() { | |
return ( | |
<div> | |
<Icon | |
glyph='icon-ikons-star' | |
style={this.props.style} | |
/> | |
</div> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment