mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 20:53:24 +10:00
Link to pending-approval variant URL if listing is pending approval
This commit is contained in:
parent
cba01b9bfb
commit
5958d4e0f0
1 changed files with 4 additions and 1 deletions
|
|
@ -178,8 +178,11 @@ export const ManageListingCardComponent = props => {
|
|||
[css.titlePending]: isPendingApproval,
|
||||
});
|
||||
|
||||
const linkName = isPendingApproval ? 'ListingPageVariant' : 'ListingPage';
|
||||
const linkParams = isPendingApproval ? { id, slug, variant: 'pending-approval' } : { id, slug };
|
||||
|
||||
return (
|
||||
<NamedLink className={classes} name="ListingPage" params={{ id, slug }}>
|
||||
<NamedLink className={classes} name={linkName} params={linkParams}>
|
||||
<div className={css.threeToTwoWrapper}>
|
||||
<div className={css.aspectWrapper}>
|
||||
<ResponsiveImage
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue