feat: refactor of my stay

This commit is contained in:
Simon Emanuelsson
2025-04-25 14:08:14 +02:00
committed by Simon.Emanuelsson
parent b5deb84b33
commit ec087a3d15
208 changed files with 5458 additions and 4569 deletions

View File

@@ -0,0 +1,15 @@
.row {
align-items: center;
display: flex;
justify-content: space-between;
}
.label {
align-items: center;
display: flex;
gap: var(--Space-x1);
}
.textDefault {
color: var(--Text-Default);
}

View File

@@ -0,0 +1,43 @@
"use client"
import { useIntl } from "react-intl"
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
import { Typography } from "@scandic-hotels/design-system/Typography"
import { useMyStayStore } from "@/stores/my-stay"
import styles from "./guaranteeInfo.module.css"
export default function GuaranteeInfo() {
const intl = useIntl()
const { allRoomsAreCancelled, guaranteeInfo } = useMyStayStore((state) => ({
allRoomsAreCancelled: state.allRoomsAreCancelled,
guaranteeInfo: state.bookedRoom.guaranteeInfo,
}))
if (allRoomsAreCancelled || !guaranteeInfo) {
return null
}
return (
<div className={styles.row}>
<div className={styles.label}>
<MaterialIcon icon="check_circle" />
<Typography variant="Body/Paragraph/mdRegular">
<p className={styles.textDefault}>
{intl.formatMessage({
defaultMessage: "Late arrival",
})}
</p>
</Typography>
</div>
<Typography variant="Body/Paragraph/mdRegular">
<p>
{intl.formatMessage({
defaultMessage: "Check-in after 18:00",
})}
</p>
</Typography>
</div>
)
}