Merged in fix/refactor-hotel-details (pull request #2513)
- Use new tokens - Make button text bold in parking information (as in Figma) - Make local call charges a reusable component - Adds mountain facility icon - Hide “Follow us” when the hotel doesn’t have any linked socials, to avoid empty heading Approved-by: Erik Tiekstra
This commit is contained in:
23
apps/scandic-web/components/LocalCallCharges/index.tsx
Normal file
23
apps/scandic-web/components/LocalCallCharges/index.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||
import { Country } from "@scandic-hotels/trpc/types/country"
|
||||
|
||||
import { getIntl } from "@/i18n"
|
||||
|
||||
interface LocalCallChargesProps {
|
||||
country: string
|
||||
}
|
||||
export default async function LocalCallCharges({
|
||||
country,
|
||||
}: LocalCallChargesProps) {
|
||||
const intl = await getIntl()
|
||||
|
||||
return country === Country.Finland ? (
|
||||
<Typography variant="Body/Supporting text (caption)/smRegular">
|
||||
<p>
|
||||
{intl.formatMessage({
|
||||
defaultMessage: "Price 0,16 €/min + local call charges",
|
||||
})}
|
||||
</p>
|
||||
</Typography>
|
||||
) : null
|
||||
}
|
||||
Reference in New Issue
Block a user