mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-09 20:28:29 +03:00
fixes: some bugs and system page breaking
This commit is contained in:
parent
d671b79b4d
commit
979bf164e8
@ -10,7 +10,6 @@ import { CreateFilecoinAddress } from "~/components/system/modules/CreateFilecoi
|
||||
import { CreateFilecoinStorageDeal } from "~/components/system/modules/CreateFilecoinStorageDeal";
|
||||
import { SendAddressFilecoin } from "~/components/system/modules/SendAddressFilecoin";
|
||||
import { FilecoinBalancesList } from "~/components/system/modules/FilecoinBalancesList";
|
||||
import { FilecoinTransactionsList } from "~/components/system/modules/FilecoinTransactionsList";
|
||||
import {
|
||||
FilecoinStorageDealsList,
|
||||
FilecoinRetrievalDealsList,
|
||||
@ -70,7 +69,6 @@ export {
|
||||
CreateFilecoinStorageDeal,
|
||||
SendAddressFilecoin,
|
||||
FilecoinBalancesList,
|
||||
FilecoinTransactionsList,
|
||||
FilecoinRetrievalDealsList,
|
||||
FilecoinStorageDealsList,
|
||||
// NOTE(jim): Components
|
||||
|
@ -12,12 +12,15 @@ const STYLES_NESTED_TABLE = css`
|
||||
grid-template-columns: 160px 1fr;
|
||||
`;
|
||||
|
||||
let iterator = 0;
|
||||
|
||||
const NestedTable = (data) => {
|
||||
let values = [];
|
||||
for (let entries of Object.entries(data)) {
|
||||
if (entries[0] !== "rootCid") {
|
||||
values.push(<div>{entries[0]}</div>);
|
||||
values.push(<div>{entries[1]}</div>);
|
||||
iterator += 1;
|
||||
values.push(<div key={iterator}>{entries[0]}</div>);
|
||||
values.push(<div key={iterator}>{entries[1]}</div>);
|
||||
}
|
||||
}
|
||||
return <div css={STYLES_NESTED_TABLE}>{values}</div>;
|
||||
|
Loading…
Reference in New Issue
Block a user