lotus/lotuspond/front/src/StorageNodeInit.js

25 lines
757 B
JavaScript
Raw Normal View History

2019-07-30 23:18:21 +00:00
import React from 'react';
2019-09-19 14:27:01 +00:00
import Window from "./Window";
2019-07-30 23:18:21 +00:00
class StorageNodeInit extends React.Component {
async componentDidMount() {
const info = await this.props.node
2019-07-30 23:18:21 +00:00
this.props.onClose()
//this.props.mountWindow((onClose) => <StorageNode node={info} fullRepo={this.props.fullRepo} fullConn={this.props.fullConn} pondClient={this.props.pondClient} onClose={onClose} mountWindow={this.props.mountWindow}/>)
2019-07-30 23:18:21 +00:00
}
render() {
2019-09-19 14:27:01 +00:00
return <Window
title={"Miner initializing"}
2019-07-30 23:18:21 +00:00
initialPosition={'center'}>
<div className="CristalScroll">
<div className="StorageNodeInit">
Waiting for init, make sure at least one miner is enabled
</div>
</div>
2019-09-19 14:27:01 +00:00
</Window>
2019-07-30 23:18:21 +00:00
}
}
export default StorageNodeInit