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
25 lines
658 B
TypeScript
25 lines
658 B
TypeScript
import { useIntl } from "react-intl"
|
|
|
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons"
|
|
|
|
import { useAddAncillaryStore } from "@/stores/my-stay/add-ancillary-flow"
|
|
|
|
import Button from "@/components/TempDesignSystem/Button"
|
|
|
|
export default function ViewAllAncillaries() {
|
|
const intl = useIntl()
|
|
const openModal = useAddAncillaryStore((state) => state.openModal)
|
|
return (
|
|
<Button
|
|
theme="base"
|
|
variant="icon"
|
|
intent="text"
|
|
size="small"
|
|
onClick={openModal}
|
|
>
|
|
{intl.formatMessage({ id: "View all" })}
|
|
<MaterialIcon icon="chevron_right" size={20} color="CurrentColor" />
|
|
</Button>
|
|
)
|
|
}
|