fixes: some bugs and system page breaking

This commit is contained in:
@wwwjim 2020-07-19 23:33:31 -07:00
parent d671b79b4d
commit 979bf164e8
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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>;