Merged in chore/eslint-curly-braces (pull request #3304)
Chore/eslint curly braces * Add eslint rule for curly braces * run eslint --fix for all files Approved-by: Linus Flood
This commit is contained in:
@@ -7,27 +7,27 @@ export function HotelCardSkeleton() {
|
||||
<article className={styles.card}>
|
||||
{/* image container */}
|
||||
<div className={styles.imageContainer}>
|
||||
<SkeletonShimmer width={'100%'} height="100%" />
|
||||
<SkeletonShimmer width="100%" height="100%" />
|
||||
</div>
|
||||
|
||||
<div className={styles.content}>
|
||||
<SkeletonShimmer height={'65px'} />
|
||||
<SkeletonShimmer height="65px" />
|
||||
<div className={styles.text}>
|
||||
<SkeletonShimmer height={'20px'} />
|
||||
<SkeletonShimmer height={'20px'} />
|
||||
<SkeletonShimmer height={'20px'} />
|
||||
<SkeletonShimmer height={'20px'} />
|
||||
<SkeletonShimmer height="20px" />
|
||||
<SkeletonShimmer height="20px" />
|
||||
<SkeletonShimmer height="20px" />
|
||||
<SkeletonShimmer height="20px" />
|
||||
</div>
|
||||
<SkeletonShimmer height={'56px'} />
|
||||
<SkeletonShimmer height={'52px'} width={'150px'} />
|
||||
<SkeletonShimmer height="56px" />
|
||||
<SkeletonShimmer height="52px" width="150px" />
|
||||
</div>
|
||||
|
||||
<div className={styles.priceVariants}>
|
||||
{/* price variants */}
|
||||
{Array.from({ length: 2 }).map((_, index) => (
|
||||
<SkeletonShimmer key={index} height={'100px'} />
|
||||
<SkeletonShimmer key={index} height="100px" />
|
||||
))}
|
||||
<SkeletonShimmer height={'40px'} />
|
||||
<SkeletonShimmer height="40px" />
|
||||
</div>
|
||||
</article>
|
||||
)
|
||||
|
||||
@@ -40,8 +40,9 @@ export default function HotelChequeCard({
|
||||
</Subtitle>
|
||||
<Caption color="uiTextHighContrast">{CurrencyEnum.CC}</Caption>
|
||||
{productTypeCheque.localPrice.additionalPricePerStay > 0 ? (
|
||||
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
|
||||
<>
|
||||
{'+'}
|
||||
+
|
||||
<Subtitle type="two" color="uiTextHighContrast">
|
||||
{productTypeCheque.localPrice.additionalPricePerStay}
|
||||
</Subtitle>
|
||||
@@ -61,7 +62,7 @@ export default function HotelChequeCard({
|
||||
defaultMessage: 'Approx.',
|
||||
})}
|
||||
</Caption>
|
||||
<Caption color={'uiTextMediumContrast'}>
|
||||
<Caption color="uiTextMediumContrast">
|
||||
{productTypeCheque.requestedPrice.numberOfCheques} {CurrencyEnum.CC}
|
||||
{productTypeCheque.requestedPrice.additionalPricePerStay
|
||||
? // eslint-disable-next-line formatjs/no-literal-string-in-jsx
|
||||
|
||||
Reference in New Issue
Block a user