diff --git a/src/components/ManageListingCard/ManageListingCard.js b/src/components/ManageListingCard/ManageListingCard.js index 0a395f18..f5a652e7 100644 --- a/src/components/ManageListingCard/ManageListingCard.js +++ b/src/components/ManageListingCard/ManageListingCard.js @@ -16,7 +16,7 @@ import { MenuLabel, MenuContent, MenuItem, - NamedLink, + ListingLink, IconSpinner, ResponsiveImage, } from '../../components'; @@ -76,7 +76,6 @@ export const ManageListingCardComponent = props => { const { title = '', price, state } = currentListing.attributes; const isPendingApproval = state === LISTING_STATE_PENDING_APPROVAL; const isClosed = state === LISTING_STATE_CLOSED; - const slug = createSlug(title); const firstImage = currentListing.images && currentListing.images.length > 0 ? currentListing.images[0] : null; @@ -178,11 +177,8 @@ export const ManageListingCardComponent = props => { [css.titlePending]: isPendingApproval, }); - const linkName = isPendingApproval ? 'ListingPageVariant' : 'ListingPage'; - const linkParams = isPendingApproval ? { id, slug, variant: 'pending-approval' } : { id, slug }; - return ( - +
{
- + ); }; diff --git a/src/components/ManageListingCard/__snapshots__/ManageListingCard.test.js.snap b/src/components/ManageListingCard/__snapshots__/ManageListingCard.test.js.snap index a30b38a5..9925e432 100644 --- a/src/components/ManageListingCard/__snapshots__/ManageListingCard.test.js.snap +++ b/src/components/ManageListingCard/__snapshots__/ManageListingCard.test.js.snap @@ -1,13 +1,29 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`ManageListingCard matches snapshot 1`] = ` - @@ -131,5 +147,5 @@ exports[`ManageListingCard matches snapshot 1`] = ` />
-
+ `;