import * as React from "react"; import * as Constants from "~/common/constants"; import * as Strings from "~/common/strings"; import * as System from "~/components/system"; import { css } from "@emotion/react"; const STYLES_CONTAINER = css` font-family: ${Constants.font.text}; box-sizing: border-box; border-radius: 4px; background-color: ${Constants.system.white}; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); border: 1px solid ${Constants.system.border}; width: 100%; `; export class FilecoinDealsList extends React.Component { state = { selectedRowId: null, }; _handleChange = (e) => { this.setState({ selectedRowId: e.target.value }); }; render() { return (
{ return { id: each.rootCid, address: each.addr, rootCid: each.rootCid, type: "1", status: each.pending ? "2" : "1", time: each.time, children: (
{Object.keys(each.dealInfo).map((key) => (
{key} {each.dealInfo[key]}
))}
), }; }), }} selectedRowId={this.state.selectedRowId} onChange={this._handleChange} name={this.props.name} />
); } }