Feat/lokalise rebuild * chore(lokalise): update translation ids * chore(lokalise): easier to switch between projects * chore(lokalise): update translation ids * . * . * . * . * . * . * chore(lokalise): update translation ids * chore(lokalise): update translation ids * . * . * . * chore(lokalise): update translation ids * chore(lokalise): update translation ids * . * . * chore(lokalise): update translation ids * chore(lokalise): update translation ids * chore(lokalise): new translations * merge * switch to errors for missing id's * merge * sync translations Approved-by: Linus Flood
36 lines
898 B
TypeScript
36 lines
898 B
TypeScript
"use client"
|
|
|
|
import { useIntl } from "react-intl"
|
|
|
|
import { Button } from "@scandic-hotels/design-system/Button"
|
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
|
|
|
import styles from "./retry.module.css"
|
|
|
|
interface RetryProps {
|
|
handleRefetch: () => void
|
|
}
|
|
|
|
export default function Retry({ handleRefetch }: RetryProps) {
|
|
const intl = useIntl()
|
|
return (
|
|
<div className={styles.retry}>
|
|
<Typography variant={"Body/Paragraph/mdRegular"}>
|
|
<p>
|
|
{intl.formatMessage({
|
|
id: "errorMessage.somethingWentWrong",
|
|
defaultMessage: "Something went wrong!",
|
|
})}
|
|
</p>
|
|
</Typography>
|
|
|
|
<Button size={"Small"} onPress={handleRefetch}>
|
|
{intl.formatMessage({
|
|
id: "bookingConfirmation.linkedReservation.tryAgain",
|
|
defaultMessage: "Try again",
|
|
})}
|
|
</Button>
|
|
</div>
|
|
)
|
|
}
|