2019-07-30 23:18:21 +00:00
|
|
|
import React from 'react';
|
|
|
|
import {Cristal} from "react-cristal";
|
|
|
|
import StorageNode from "./StorageNode";
|
|
|
|
|
|
|
|
class StorageNodeInit extends React.Component {
|
|
|
|
async componentDidMount() {
|
2019-09-09 16:01:53 +00:00
|
|
|
const info = await this.props.node
|
2019-07-30 23:18:21 +00:00
|
|
|
|
|
|
|
this.props.onClose()
|
2019-09-09 16:01:53 +00:00
|
|
|
//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() {
|
|
|
|
return <Cristal
|
|
|
|
title={"Storage miner initializing"}
|
|
|
|
initialPosition={'center'}>
|
|
|
|
<div className="CristalScroll">
|
|
|
|
<div className="StorageNodeInit">
|
|
|
|
Waiting for init, make sure at least one miner is enabled
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</Cristal>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default StorageNodeInit
|