Fix this.state.hovered null error

This commit is contained in:
6ea86b96 2017-06-22 21:17:01 +07:00
parent d9bc7f9777
commit d53c3d4db6
No known key found for this signature in database
GPG key ID: B282D183E4931E8F

View file

@ -7,6 +7,14 @@ import FilePrice from "component/filePrice";
import UriIndicator from "component/uriIndicator";
class FileCard extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
hovered: false,
};
}
componentWillMount() {
this.resolve(this.props);
}