Merged in feat/LOY-199-add-benefits-link-to-dtmc (pull request #2014)

feat(LOY-199): add benefits link to dtmc modal

Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
Christian Andolf
2025-05-08 14:53:57 +00:00
2 changed files with 20 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ import { useIntl } from "react-intl"
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon" import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
import { Typography } from "@scandic-hotels/design-system/Typography" import { Typography } from "@scandic-hotels/design-system/Typography"
import ButtonLink from "@/components/ButtonLink"
import Modal from "@/components/Modal" import Modal from "@/components/Modal"
import useWakeLock from "@/hooks/useWakeLock" import useWakeLock from "@/hooks/useWakeLock"
@@ -117,13 +118,24 @@ export default function DigitalTeamMemberCardClient({
</div> </div>
</div> </div>
<Typography variant="Body/Paragraph/mdRegular"> <Typography variant="Body/Paragraph/mdRegular">
<div className={styles.footer}> <p className={styles.footer}>
{intl.formatMessage({ {intl.formatMessage({
defaultMessage: defaultMessage:
"Book discounted stays for yourself, family and friends!", "Book discounted stays for yourself, family and friends!",
})} })}
</div> </p>
</Typography> </Typography>
{/* TODO: Add missing link to benefits page */}
<ButtonLink href="#" target="_blank" variant="Tertiary">
<Typography variant="Body/Supporting text (caption)/smBold">
<span className={styles.link}>
{intl.formatMessage({
defaultMessage: "Check out all your benefits",
})}
<MaterialIcon icon="open_in_new" size={20} color="CurrentColor" />
</span>
</Typography>
</ButtonLink>
</Modal> </Modal>
</> </>
) )

View File

@@ -110,6 +110,12 @@
text-align: center; text-align: center;
} }
.link {
display: flex;
align-items: center;
gap: var(--Space-x05);
}
@media screen and (min-width: 768px) { @media screen and (min-width: 768px) {
.modal { .modal {
max-width: 375px; max-width: 375px;