Merged in fix/SW-2366-alerts-the-list-bullet-display (pull request #2679)
fix(SW-2366): Fixed hotel alerts in booking page as per design * fix(SW-2366): Fixed hotel alerts in booking page as per design * fix(SW-2366): Optimise code Approved-by: Erik Tiekstra
This commit is contained in:
@@ -11,11 +11,6 @@
|
||||
gap: 80px;
|
||||
}
|
||||
|
||||
.toast {
|
||||
width: var(--max-width-content);
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.title {
|
||||
color: var(--Scandic-Brand-Burgundy);
|
||||
text-align: center;
|
||||
|
||||
@@ -5,7 +5,7 @@ import { useIntl } from "react-intl"
|
||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||
|
||||
import { Toast } from "@/components/TempDesignSystem/Toasts"
|
||||
import Alert from "@/components/TempDesignSystem/Alert"
|
||||
import { trackMyStayPageLink } from "@/utils/tracking"
|
||||
|
||||
import SummaryCard from "./SummaryCard"
|
||||
@@ -103,21 +103,14 @@ export default function BookingSummary({ hotel }: BookingSummaryProps) {
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
{hotel.specialAlerts.length > 0 && (
|
||||
<div className={styles.toast}>
|
||||
<Toast variant="info">
|
||||
<ul>
|
||||
{hotel.specialAlerts.map((alert) => (
|
||||
<li key={alert.id}>
|
||||
<Typography variant="Body/Paragraph/mdRegular">
|
||||
<span>{alert.text}</span>
|
||||
</Typography>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</Toast>
|
||||
</div>
|
||||
)}
|
||||
{hotel.specialAlerts.map((alert) => (
|
||||
<Alert
|
||||
key={alert.id}
|
||||
type={alert.type}
|
||||
heading={alert.heading}
|
||||
text={alert.text}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user