mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 20:53:24 +10:00
Update snapshots and run prettier
This commit is contained in:
parent
014d50257f
commit
20962c7c0f
5 changed files with 31 additions and 9 deletions
|
|
@ -77,7 +77,7 @@ export const BookingBreakdownComponent = props => {
|
|||
let commissionInfo = null;
|
||||
|
||||
if (userRole === 'provider') {
|
||||
const subTotal = new Decimal(nightCount).times(unitPriceAsNumber);
|
||||
const subTotal = new Decimal(nightCount).times(unitPriceAsNumber).toNumber();
|
||||
const formattedSubTotal = intl.formatNumber(subTotal, currencyConfig);
|
||||
|
||||
subTotalInfo = (
|
||||
|
|
@ -134,8 +134,7 @@ export const BookingBreakdownComponent = props => {
|
|||
<div className={css.totalLabel}>
|
||||
{userRole === 'customer'
|
||||
? <FormattedMessage id="BookingBreakdown.total" />
|
||||
: <FormattedMessage id="BookingBreakdown.providerTotal" />
|
||||
}
|
||||
: <FormattedMessage id="BookingBreakdown.providerTotal" />}
|
||||
</div>
|
||||
<div className={css.totalPrice}>
|
||||
{formattedTotalPrice}
|
||||
|
|
|
|||
|
|
@ -160,6 +160,19 @@ exports[`BookingBreakdown provider transaction data matches snapshot 1`] = `
|
|||
} />
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
className={undefined}>
|
||||
<span
|
||||
className={undefined}>
|
||||
<span>
|
||||
Subtotal:
|
||||
</span>
|
||||
</span>
|
||||
<span
|
||||
className={undefined}>
|
||||
20
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
className={undefined}>
|
||||
<span
|
||||
|
|
@ -170,7 +183,7 @@ exports[`BookingBreakdown provider transaction data matches snapshot 1`] = `
|
|||
</span>
|
||||
<span
|
||||
className={undefined}>
|
||||
2
|
||||
-2
|
||||
</span>
|
||||
</div>
|
||||
<hr
|
||||
|
|
@ -180,7 +193,7 @@ exports[`BookingBreakdown provider transaction data matches snapshot 1`] = `
|
|||
<div
|
||||
className={undefined}>
|
||||
<span>
|
||||
Total price
|
||||
Happy days! You just made…
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
|
|
|
|||
|
|
@ -79,7 +79,9 @@ export const AuthenticationPageComponent = props => {
|
|||
|
||||
const tabs = [
|
||||
{
|
||||
text: <h1 className={css.tab}><FormattedMessage id="AuthenticationPage.signupLinkText" /></h1>,
|
||||
text: (
|
||||
<h1 className={css.tab}><FormattedMessage id="AuthenticationPage.signupLinkText" /></h1>
|
||||
),
|
||||
selected: !isLogin,
|
||||
linkProps: {
|
||||
name: 'SignupPage',
|
||||
|
|
|
|||
|
|
@ -31,7 +31,11 @@ exports[`AuthenticationPageComponent matches snapshot 1`] = `
|
|||
},
|
||||
},
|
||||
"selected": false,
|
||||
"text": "AuthenticationPage.signupLinkText",
|
||||
"text": <h1>
|
||||
<FormattedMessage
|
||||
id="AuthenticationPage.signupLinkText"
|
||||
values={Object {}} />
|
||||
</h1>,
|
||||
},
|
||||
Object {
|
||||
"linkProps": Object {
|
||||
|
|
@ -43,7 +47,11 @@ exports[`AuthenticationPageComponent matches snapshot 1`] = `
|
|||
},
|
||||
},
|
||||
"selected": true,
|
||||
"text": "AuthenticationPage.loginLinkText",
|
||||
"text": <h1>
|
||||
<FormattedMessage
|
||||
id="AuthenticationPage.loginLinkText"
|
||||
values={Object {}} />
|
||||
</h1>,
|
||||
},
|
||||
]
|
||||
} />
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ const stripeElementsOptions = {
|
|||
weight: 500,
|
||||
src: 'local("sofiapro"), local("SofiaPro"), local("Sofia Pro"), url("https://assets-sharetribecom.sharetribe.com/webfonts/sofiapro/sofiapro-medium-webfont.woff2") format("woff2")',
|
||||
},
|
||||
]
|
||||
],
|
||||
};
|
||||
|
||||
const cardStyles = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue