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)} data={data.map(formatField)}
title="Funding Profiles" title="Funding Profiles"
options={{ showEmptyDataSourceMessage: true }}
actions={[ actions={[
rowData => ({ rowData => ({
icon: 'cancel', icon: 'cancel',

View File

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

View File

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

View File

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

5853
yarn.lock

File diff suppressed because it is too large Load Diff