Fix this.state.hovered null error
This commit is contained in:
parent
d9bc7f9777
commit
d53c3d4db6
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue