slate/scenes/SceneMiners.js

60 lines
1.7 KiB
JavaScript
Raw Normal View History

import * as React from "react";
import * as System from "~/components/system";
import Section from "~/components/core/Section";
import ScenePage from "~/components/core/ScenePage";
2020-09-27 19:38:20 +03:00
import ScenePageHeader from "~/components/core/ScenePageHeader";
export default class SceneMiners extends React.Component {
render() {
return (
2020-11-16 00:54:14 +03:00
<React.Fragment>
<ScenePageHeader>
Whenever you make a deal against the Filecoin Network, Slate works with Textile's
infrastructure to find the best possible miner to make a storage deal with.
2020-09-27 19:38:20 +03:00
</ScenePageHeader>
2020-10-19 02:48:22 +03:00
<Section title="Listing" style={{ maxWidth: 960, minWidth: "auto" }}>
<System.Table
data={{
columns: [
{
key: "id",
2020-09-27 19:38:20 +03:00
name: "Miner",
2020-10-19 02:48:22 +03:00
width: "96px",
},
{
key: "minPieceSizeFormatted",
name: "Minimum size",
width: "124px",
},
{
key: "minDealDuration",
name: "Minimum duration",
width: "140px",
},
{
2020-09-27 19:38:20 +03:00
key: "location",
name: "Location",
width: "188px",
},
2020-10-19 02:48:22 +03:00
{
key: "priceFIL",
name: "Price",
width: "100%",
},
],
2020-11-16 00:54:14 +03:00
rows: this.props.miners.map((each) => {
return {
...each,
...each.storageAsk,
};
}),
}}
/>
</Section>
2020-11-16 00:54:14 +03:00
</React.Fragment>
);
}
}