mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-27 09:13:14 +10:00
EditListingPage: import routeConfiguration and remove context.flattenedRoutes
This commit is contained in:
parent
f1682b9021
commit
a1e8917b1c
3 changed files with 1 additions and 6 deletions
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ describe('EditListingPageComponent', () => {
|
|||
isAuthenticated={false}
|
||||
authInProgress={false}
|
||||
fetchInProgress={false}
|
||||
flattenedRoutes={[]}
|
||||
location={{ search: '' }}
|
||||
history={{ push: noop }}
|
||||
getListing={getListing}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@ exports[`EditListingPageComponent matches snapshot 1`] = `
|
|||
}
|
||||
}
|
||||
fetchInProgress={false}
|
||||
flattenedRoutes={Array []}
|
||||
history={
|
||||
Object {
|
||||
"push": [Function],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue