Switches out all the old icons to new ones, and moves them to the design system. The new icons are of three different types: Materialise Symbol, Nucleo, and Customized. Also adds further mapping between facilities/amenities and icons. Approved-by: Michael Zetterberg Approved-by: Erik Tiekstra
37 lines
795 B
TypeScript
37 lines
795 B
TypeScript
"use client"
|
|
|
|
import { useIntl } from "react-intl"
|
|
|
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons"
|
|
|
|
import Button from "@/components/TempDesignSystem/Button"
|
|
import { trackMyStayPageLink } from "@/utils/tracking"
|
|
|
|
import styles from "../actionPanel.module.css"
|
|
|
|
export default function AddToCalendarButton({
|
|
onPress,
|
|
}: {
|
|
onPress: () => void
|
|
}) {
|
|
const intl = useIntl()
|
|
|
|
const handleAddToCalendar = () => {
|
|
trackMyStayPageLink("add to calendar")
|
|
onPress()
|
|
}
|
|
|
|
return (
|
|
<Button
|
|
variant="icon"
|
|
intent="text"
|
|
theme="base"
|
|
className={styles.button}
|
|
onPress={handleAddToCalendar}
|
|
>
|
|
{intl.formatMessage({ id: "Add to calendar" })}
|
|
<MaterialIcon icon="calendar_add_on" color="CurrentColor" />
|
|
</Button>
|
|
)
|
|
}
|