Set valid dates on auto-create.

This commit is contained in:
Will O'Beirne 2019-02-05 16:05:16 -05:00
parent 6cd6520fbc
commit f0303b26b4
No known key found for this signature in database
GPG Key ID: 44C190DB5DEAF9F6
1 changed files with 10 additions and 3 deletions

View File

@ -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,
},