diff --git a/src/containers/EditListingPage/EditListingPage.js b/src/containers/EditListingPage/EditListingPage.js
index 4fb797d1..ab26e481 100644
--- a/src/containers/EditListingPage/EditListingPage.js
+++ b/src/containers/EditListingPage/EditListingPage.js
@@ -6,15 +6,12 @@ import { connect } from 'react-redux';
import { types } from '../../util/sdkLoader';
import { createSlug } from '../../util/urlHelpers';
import * as propTypes from '../../util/propTypes';
-import { EditListingWizard, NamedRedirect, Page, Topbar } from '../../components';
import { getListingsById } from '../../ducks/marketplaceData.duck';
-import { logout, authenticationInProgress } from '../../ducks/Auth.duck';
import { manageDisableScrolling, isScrollingDisabled } from '../../ducks/UI.duck';
-import {
- stripeAccountClearError,
- createStripeAccount,
- sendVerificationEmail,
-} from '../../ducks/user.duck';
+import { stripeAccountClearError, createStripeAccount } from '../../ducks/user.duck';
+import { EditListingWizard, NamedRedirect, Page } from '../../components';
+import { TopbarContainer } from '../../containers';
+
import {
createListingDraft,
updateListingDraft,
@@ -53,25 +50,18 @@ const formatRequestData = values => {
export const EditListingPageComponent = props => {
const {
authInfoError,
- authInProgress,
currentUser,
- currentUserHasListings,
- currentUserHasOrders,
createStripeAccountError,
fetchInProgress,
getListing,
history,
intl,
- isAuthenticated,
- location,
logoutError,
- notificationCount,
onCreateListing,
onUpdateListing,
onCreateListingDraft,
onImageUpload,
onRemoveListingImage,
- onLogout,
onManageDisableScrolling,
onPayoutDetailsSubmit,
onPayoutDetailsFormChange,
@@ -81,9 +71,6 @@ export const EditListingPageComponent = props => {
page,
params,
scrollingDisabled,
- sendVerificationEmailInProgress,
- sendVerificationEmailError,
- onResendVerificationEmail,
} = props;
const { id, type } = params;
@@ -141,24 +128,11 @@ export const EditListingPageComponent = props => {
title={title}
scrollingDisabled={scrollingDisabled}
>
-
{
const page = state.EditListingPage;
- const { authInfoError, isAuthenticated, logoutError } = state.Auth;
+ const { authInfoError, logoutError } = state.Auth;
const {
createStripeAccountInProgress,
createStripeAccountError,
currentUser,
- currentUserHasListings,
- currentUserHasOrders,
- currentUserNotificationCount: notificationCount,
- sendVerificationEmailInProgress,
- sendVerificationEmailError,
} = state.user;
const fetchInProgress = createStripeAccountInProgress;
@@ -278,20 +238,13 @@ const mapStateToProps = state => {
};
return {
authInfoError,
- authInProgress: authenticationInProgress(state),
createStripeAccountError,
currentUser,
- currentUserHasListings,
- currentUserHasOrders,
fetchInProgress,
getListing,
- isAuthenticated,
logoutError,
- notificationCount,
page,
scrollingDisabled: isScrollingDisabled(state),
- sendVerificationEmailInProgress,
- sendVerificationEmailError,
};
};
@@ -300,7 +253,6 @@ const mapDispatchToProps = dispatch => ({
onUpdateListing: (tab, values) => dispatch(requestUpdateListing(tab, values)),
onCreateListingDraft: values => dispatch(createListingDraft(values)),
onImageUpload: data => dispatch(requestImageUpload(data)),
- onLogout: historyPush => dispatch(logout(historyPush)),
onManageDisableScrolling: (componentId, disableScrolling) =>
dispatch(manageDisableScrolling(componentId, disableScrolling)),
onPayoutDetailsFormChange: () => dispatch(stripeAccountClearError()),
@@ -309,7 +261,6 @@ const mapDispatchToProps = dispatch => ({
onRemoveListingImage: imageId => dispatch(removeListingImage(imageId)),
onUpdateListingDraft: values => dispatch(updateListingDraft(values)),
onChange: () => dispatch(clearUpdatedTab()),
- onResendVerificationEmail: () => dispatch(sendVerificationEmail()),
});
const EditListingPage = compose(connect(mapStateToProps, mapDispatchToProps), withRouter)(
diff --git a/src/containers/EditListingPage/__snapshots__/EditListingPage.test.js.snap b/src/containers/EditListingPage/__snapshots__/EditListingPage.test.js.snap
index 4a18a710..e4d0c50d 100644
--- a/src/containers/EditListingPage/__snapshots__/EditListingPage.test.js.snap
+++ b/src/containers/EditListingPage/__snapshots__/EditListingPage.test.js.snap
@@ -4,28 +4,7 @@ exports[`EditListingPageComponent matches snapshot 1`] = `
logoutError={null}
scrollingDisabled={false}
title="EditListingPage.titleCreateListing">
-
+