EditListingPage: import routeConfiguration and remove context.flattenedRoutes

This commit is contained in:
Vesa Luusua 2017-10-10 20:15:14 +03:00
parent f1682b9021
commit a1e8917b1c
3 changed files with 1 additions and 6 deletions

View file

@ -59,7 +59,6 @@ export const EditListingPageComponent = props => {
currentUserHasOrders,
createStripeAccountError,
fetchInProgress,
flattenedRoutes,
getListing,
history,
intl,
@ -168,7 +167,6 @@ export const EditListingPageComponent = props => {
errors={errors}
fetchInProgress={fetchInProgress}
newListingCreated={newListingCreated}
flattenedRoutes={flattenedRoutes}
history={history}
images={images}
listing={isNew ? page.listingDraft : currentListing}
@ -211,7 +209,7 @@ EditListingPageComponent.defaultProps = {
sendVerificationEmailError: null,
};
const { arrayOf, bool, func, instanceOf, number, object, shape, string, oneOf } = PropTypes;
const { bool, func, instanceOf, number, object, shape, string, oneOf } = PropTypes;
EditListingPageComponent.propTypes = {
authInfoError: instanceOf(Error),
@ -221,7 +219,6 @@ EditListingPageComponent.propTypes = {
currentUserHasListings: bool.isRequired,
currentUserHasOrders: bool,
fetchInProgress: bool.isRequired,
flattenedRoutes: arrayOf(propTypes.route).isRequired,
getListing: func.isRequired,
isAuthenticated: bool.isRequired,
logoutError: instanceOf(Error),

View file

@ -15,7 +15,6 @@ describe('EditListingPageComponent', () => {
isAuthenticated={false}
authInProgress={false}
fetchInProgress={false}
flattenedRoutes={[]}
location={{ search: '' }}
history={{ push: noop }}
getListing={getListing}

View file

@ -38,7 +38,6 @@ exports[`EditListingPageComponent matches snapshot 1`] = `
}
}
fetchInProgress={false}
flattenedRoutes={Array []}
history={
Object {
"push": [Function],