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)}
|
||||
title="Funding Profiles"
|
||||
options={{ showEmptyDataSourceMessage: true }}
|
||||
actions={[
|
||||
rowData => ({
|
||||
icon: 'cancel',
|
||||
|
|
|
@ -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} />
|
||||
|
|
|
@ -66,6 +66,7 @@ class PledgesTable extends PureComponent {
|
|||
]}
|
||||
data={data.map((f) => formatField(f, fundProfiles))}
|
||||
title="Pledges"
|
||||
options={{ showEmptyDataSourceMessage: true }}
|
||||
actions={[
|
||||
{
|
||||
icon: 'compare_arrows',
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue