lotus/lotuspond/front/src/StorageNodeInit.js

26 lines
816 B
JavaScript
Raw Normal View History

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() {
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() {
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