Set valid dates on auto-create.
This commit is contained in:
parent
6cd6520fbc
commit
f0303b26b4
|
@ -1,3 +1,4 @@
|
|||
import moment from 'moment';
|
||||
import { PROPOSAL_CATEGORY } from 'api/constants';
|
||||
import { ProposalDraft } from 'types';
|
||||
|
||||
|
@ -19,7 +20,9 @@ const createExampleProposal = (): Partial<ProposalDraft> => {
|
|||
title: 'Initial Funding',
|
||||
content:
|
||||
'This will be used to pay for a professional designer to hand-craft each letter on the shirt.',
|
||||
dateEstimated: 'October 2018',
|
||||
dateEstimated: moment()
|
||||
.add(1, 'month')
|
||||
.format('MMMM YYYY'),
|
||||
payoutPercent: '30',
|
||||
immediatePayout: true,
|
||||
},
|
||||
|
@ -27,7 +30,9 @@ const createExampleProposal = (): Partial<ProposalDraft> => {
|
|||
title: 'Test Prints',
|
||||
content:
|
||||
"We'll get test prints from 5 different factories and choose the highest quality shirts. Once we've decided, we'll order a full batch of prints.",
|
||||
dateEstimated: 'November 2018',
|
||||
dateEstimated: moment()
|
||||
.add(2, 'month')
|
||||
.format('MMMM YYYY'),
|
||||
payoutPercent: '20',
|
||||
immediatePayout: false,
|
||||
},
|
||||
|
@ -35,7 +40,9 @@ const createExampleProposal = (): Partial<ProposalDraft> => {
|
|||
title: 'All Shirts Printed',
|
||||
content:
|
||||
"All of the shirts have been printed, hooray! They'll be given out at conferences and meetups.",
|
||||
dateEstimated: 'December 2018',
|
||||
dateEstimated: moment()
|
||||
.add(3, 'month')
|
||||
.format('MMMM YYYY'),
|
||||
payoutPercent: '50',
|
||||
immediatePayout: false,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue