add no records placeholder to tables

This commit is contained in:
Barry Gitarts 2019-01-10 14:37:23 -05:00
parent de1097bd51
commit aa410dbd4b
5 changed files with 145 additions and 5717 deletions

View File

@ -28,6 +28,7 @@ const FunderProfilesTable = ({ data, cancelFundProfile }) => (
]}
data={data.map(formatField)}
title="Funding Profiles"
options={{ showEmptyDataSourceMessage: true }}
actions={[
rowData => ({
icon: 'cancel',

View File

@ -12,8 +12,8 @@ const FundsManagement = ({ open }) => {
<FundingContext.Consumer>
{({ allPledges, appendPledges, appendFundProfile, transferPledgeAmounts, fundProfiles, cancelFundProfile }) =>
<div style={{ maxWidth }}>
{!!allPledges.length && <PledgesTable data={allPledges} transferPledgeAmounts={transferPledgeAmounts} fundProfiles={fundProfiles} />}
{!!fundProfiles.length && <FunderProfilesTable data={fundProfiles} cancelFundProfile={cancelFundProfile}/>}
<PledgesTable data={allPledges} transferPledgeAmounts={transferPledgeAmounts} fundProfiles={fundProfiles} />
<FunderProfilesTable data={fundProfiles} cancelFundProfile={cancelFundProfile}/>
<AddFunder appendFundProfile={appendFundProfile} />
<Divider variant="middle" />
<CreateFunding refreshTable={appendPledges} />

View File

@ -66,6 +66,7 @@ class PledgesTable extends PureComponent {
]}
data={data.map((f) => formatField(f, fundProfiles))}
title="Pledges"
options={{ showEmptyDataSourceMessage: true }}
actions={[
{
icon: 'compare_arrows',

View File

@ -63,7 +63,6 @@
"cytoscape": "^3.3.0",
"cytoscape-cose-bilkent": "^4.0.0",
"cytoscape-dagre": "^2.2.2",
"embark": "^4.0.0-alpha.2",
"eslint": "^5.9.0",
"eth-contract-class": "^0.0.12",
"formik": "^1.3.2",

5853
yarn.lock

File diff suppressed because it is too large Load Diff