mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-30 18:16:48 +10:00
Add closed view for mobile bottom bar
This commit is contained in:
parent
e0d206df21
commit
12c3770ad2
3 changed files with 19 additions and 7 deletions
|
|
@ -510,3 +510,10 @@
|
|||
.bookButton {
|
||||
@apply --marketplaceButtonStylesPrimary;
|
||||
}
|
||||
|
||||
.closedListingButton {
|
||||
border-left: 1px solid var(--matterColorNegative);
|
||||
width: 100%;
|
||||
padding: 15px 24px 15px 24px;
|
||||
text-align: center;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -194,7 +194,7 @@ export class ListingPageComponent extends Component {
|
|||
: null;
|
||||
|
||||
const authorAvailable = currentListing && currentListing.author;
|
||||
const userAndListingAuthorAvailable = currentUser && authorAvailable;
|
||||
const userAndListingAuthorAvailable = !!(currentUser && authorAvailable);
|
||||
const isOwnListing = userAndListingAuthorAvailable &&
|
||||
currentListing.author.id.uuid === currentUser.id.uuid;
|
||||
|
||||
|
|
@ -392,9 +392,13 @@ export class ListingPageComponent extends Component {
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<Button rootClassName={css.bookButton} onClick={handleBookButtonClick}>
|
||||
{bookBtnMessage}
|
||||
</Button>
|
||||
{currentListing.attributes.open
|
||||
? <Button rootClassName={css.bookButton} onClick={handleBookButtonClick}>
|
||||
{bookBtnMessage}
|
||||
</Button>
|
||||
: <div className={css.closedListingButton}>
|
||||
<FormattedMessage id="ListingPage.closedListingButtonText" />
|
||||
</div>}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@
|
|||
"CheckoutPage.paymentInfo": "You'll only be charged if your request is accepted by the provider.",
|
||||
"CheckoutPage.paymentTitle": "Payment",
|
||||
"CheckoutPage.priceBreakdownTitle": "Booking breakdown",
|
||||
"CheckoutPage.title": "Book {listingTitle}",
|
||||
"CheckoutPage.speculateTransactionError": "Failed to fetch breakdown information. Please try again.",
|
||||
"CheckoutPage.title": "Book {listingTitle}",
|
||||
"DateInput.clearDate": "Clear Date",
|
||||
"DateInput.closeDatePicker": "Close",
|
||||
"DateInput.defaultPlaceholder": "Date input",
|
||||
|
|
@ -146,6 +146,7 @@
|
|||
"ListingPage.bookingHelpClosedListing": "Sorry, this listing has been closed.",
|
||||
"ListingPage.bookingTitle": "Book {title}",
|
||||
"ListingPage.closedListing": "This listing has been closed and can't be booked.",
|
||||
"ListingPage.closedListingButtonText": "Sorry, this listing has been closed.",
|
||||
"ListingPage.ctaButtonMessage": "Request to book",
|
||||
"ListingPage.descriptionTitle": "About this sauna",
|
||||
"ListingPage.editListing": "Edit listing",
|
||||
|
|
@ -153,8 +154,8 @@
|
|||
"ListingPage.loadingListingData": "Loading listing data",
|
||||
"ListingPage.locationTitle": "Location",
|
||||
"ListingPage.noListingData": "Could not find listing data",
|
||||
"ListingPage.ownListing": "This is your own listing.",
|
||||
"ListingPage.ownClosedListing": "Your listing has been closed and can't be booked.",
|
||||
"ListingPage.ownListing": "This is your own listing.",
|
||||
"ListingPage.perNight": "per night",
|
||||
"ListingPage.viewImagesButton": "View photos ({count})",
|
||||
"LoginForm.emailLabel": "Email",
|
||||
|
|
@ -164,8 +165,8 @@
|
|||
"LoginForm.passwordLabel": "Password",
|
||||
"LoginForm.passwordPlaceholder": "Enter your password…",
|
||||
"LoginForm.passwordRequired": "This field is required",
|
||||
"ManageListingCard.closedListing": "This listing is closed and hidden from the marketplace.",
|
||||
"ManageListingCard.closeListing": "Close listing",
|
||||
"ManageListingCard.closedListing": "This listing is closed and hidden from the marketplace.",
|
||||
"ManageListingCard.edit": "Edit",
|
||||
"ManageListingCard.openListing": "Open listing",
|
||||
"ManageListingCard.perNight": "per night",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue