mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 20:53:24 +10:00
Improve error UI
This commit is contained in:
parent
0f4f57c9be
commit
02bbf8b71e
3 changed files with 7 additions and 9 deletions
|
|
@ -287,9 +287,7 @@
|
|||
padding-bottom: 55px;
|
||||
|
||||
/* Position */
|
||||
margin-top: 120px;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
margin: 120px 0 24px 0;
|
||||
|
||||
/* Coloring */
|
||||
background-color: var(--matterColorLight);
|
||||
|
|
|
|||
|
|
@ -195,16 +195,16 @@ export class CheckoutPageComponent extends Component {
|
|||
? currentListing.images[0]
|
||||
: null;
|
||||
|
||||
const initiateOrderErrorMessage = initiateOrderError
|
||||
? <p className={css.orderError}>
|
||||
<FormattedMessage id="CheckoutPage.initiateOrderError" />
|
||||
</p>
|
||||
: null;
|
||||
const listingNotFoundErrorMessage = listingNotFound
|
||||
? <p className={css.notFoundError}>
|
||||
<FormattedMessage id="CheckoutPage.listingNotFoundError" />
|
||||
</p>
|
||||
: null;
|
||||
const initiateOrderErrorMessage = !listingNotFound && initiateOrderError
|
||||
? <p className={css.orderError}>
|
||||
<FormattedMessage id="CheckoutPage.initiateOrderError" />
|
||||
</p>
|
||||
: null;
|
||||
const speculateTransactionErrorMessage = speculateTransactionError
|
||||
? <p className={css.speculateError}>
|
||||
<FormattedMessage id="CheckoutPage.speculateTransactionError" />
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
"BookingDatesForm.youWontBeChargedInfo": "You won't be charged yet",
|
||||
"CheckoutPage.goToLandingPage": "Go to homepage",
|
||||
"CheckoutPage.hostedBy": "Hosted by {name}",
|
||||
"CheckoutPage.initiateOrderError": "Payment request failed. Please try again.",
|
||||
"CheckoutPage.initiateOrderError": "Payment request failed. Please refresh the page and try again.",
|
||||
"CheckoutPage.listingNotFoundError": "Unfortunately the listing is not available anymore.",
|
||||
"CheckoutPage.loadingData": "Loading checkout data...",
|
||||
"CheckoutPage.paymentInfo": "You'll only be charged if your request is accepted by the provider.",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue