Feat(SW-1275) cancel booking my stay * feat(SW-1276) UI implementation Desktop part 1 for MyStay * feat(SW-1276) UI implementation Desktop part 2 for MyStay * feat(SW-1276) UI implementation Mobile part 1 for MyStay * refactor: move files from MyStay/MyStay to MyStay * feat(SW-1276) Sidepeek implementation * feat(SW-1276): Refactoring * feat(SW-1276) UI implementation Mobile part 2 for MyStay * feat(SW-1276): translations * feat(SW-1276) fixed skeleton * feat(SW-1276): Added missing translations * feat(SW-1276) fixed translations * feat(SW-1275) cancel modal * feat(SW-1275): Mutate cancel booking * feat(SW-1275) added translations * feat(SW-1275) match current cancellationReason * feat(SW-1275) Added modal for manage stay * feat(SW-1275) Added missing icon * feat(SW-1275) New Dont cancel button * feat(SW-1275) Added preperation for Cancellation number * feat(SW-1275): added --modal-box-shadow * feat(SW-1718) Add to calendar * feat(SW-1718) general add to calendar Approved-by: Niclas Edenvin
30 lines
612 B
TypeScript
30 lines
612 B
TypeScript
"use client"
|
|
|
|
import { useIntl } from "react-intl"
|
|
|
|
import { CalendarAddIcon } from "@/components/Icons"
|
|
import Button from "@/components/TempDesignSystem/Button"
|
|
|
|
import styles from "../actionPanel.module.css"
|
|
|
|
export default function AddToCalendarButton({
|
|
onPress,
|
|
}: {
|
|
onPress: () => void
|
|
}) {
|
|
const intl = useIntl()
|
|
|
|
return (
|
|
<Button
|
|
variant="icon"
|
|
intent="text"
|
|
theme="base"
|
|
className={styles.button}
|
|
onPress={onPress}
|
|
>
|
|
{intl.formatMessage({ id: "Add to calendar" })}
|
|
<CalendarAddIcon width={24} height={24} color="burgundy" />
|
|
</Button>
|
|
)
|
|
}
|