add no records placeholder to tables
This commit is contained in:
parent
de1097bd51
commit
aa410dbd4b
|
@ -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',
|
||||||
|
|
|
@ -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} />
|
||||||
|
|
|
@ -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',
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue