Add pendingApproval and closed listing states

This commit is contained in:
Kimmo Puputti 2018-01-25 11:05:33 +02:00
parent 2dcb9191b0
commit 0ac8144efd

View file

@ -125,8 +125,15 @@ propTypes.user = shape({
profileImage: propTypes.image,
});
export const LISTING_STATE_PENDING_APPROVAL = 'pendingApproval';
export const LISTING_STATE_PUBLISHED = 'published';
export const LISTING_STATES = [LISTING_STATE_PUBLISHED];
export const LISTING_STATE_CLOSED = 'closed';
const LISTING_STATES = [
LISTING_STATE_PENDING_APPROVAL,
LISTING_STATE_PUBLISHED,
LISTING_STATE_CLOSED,
];
const listingAttributes = shape({
title: string.isRequired,