Merged in refactor-tripadvisor-chip (pull request #3404)
Refactor TripadvisorChip * feat: create new StaticChip componeny * refactor tripadvisor chip to use ChipStatic * refactor: use TripadvisorChip everywhere * fix: use withChipStatic Approved-by: Erik Tiekstra
This commit is contained in:
@@ -40,7 +40,9 @@ export function HotelCardDialogImage({
|
||||
{rating?.tripAdvisor && (
|
||||
<TripAdvisorChip
|
||||
rating={rating.tripAdvisor}
|
||||
size={position === "top" ? "small" : "default"}
|
||||
color="Neutral"
|
||||
size={position === "top" ? "xs" : "sm"}
|
||||
wrapper={position === "top" ? "x05" : "x15"}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -216,7 +216,12 @@ export const HotelCardComponent = memo(
|
||||
sizes="(min-width: 768px) calc(100vw - 340px), (min-width: 1367px) 33vw, 100vw"
|
||||
/>
|
||||
{hotel.ratings?.tripAdvisor && (
|
||||
<TripAdvisorChip rating={hotel.ratings.tripAdvisor} />
|
||||
<TripAdvisorChip
|
||||
rating={hotel.ratings.tripAdvisor}
|
||||
color="Neutral"
|
||||
size="sm"
|
||||
wrapper="x2"
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user