Merged in refactor/small-cleanup (pull request #3252)

fix: some cleanup

* fix: some cleanup


Approved-by: Emma Zettervall
This commit is contained in:
Matilda Landström
2025-11-28 13:57:30 +00:00
parent 9294f0958b
commit c29b724317
6 changed files with 41 additions and 45 deletions

View File

@@ -3,7 +3,7 @@
import { useIntl } from "react-intl"
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
import Link from "@scandic-hotels/design-system/OldDSLink"
import { TextLink } from "@scandic-hotels/design-system/TextLink"
import { Typography } from "@scandic-hotels/design-system/Typography"
import styles from "./changeNameDisclaimer.module.css"
@@ -25,28 +25,24 @@ export default function ChangeNameDisclaimer() {
{
phone([str]) {
return (
<Typography variant="Body/Supporting text (caption)/smBold">
<Link
href={`tel:${str.replaceAll(" ", "")}`}
textDecoration="underline"
size="none"
>
{str}
</Link>
</Typography>
<TextLink
href={`tel:${str.replaceAll(" ", "")}`}
typography="Body/Supporting text (caption)/smBold"
isInline
>
{str}
</TextLink>
)
},
email(str) {
return (
<Typography variant="Body/Supporting text (caption)/smBold">
<Link
href={`mailto:${str}`}
textDecoration="underline"
size="none"
>
{str}
</Link>
</Typography>
<TextLink
href={`mailto:${str}`}
typography="Body/Supporting text (caption)/smBold"
isInline
>
{str}
</TextLink>
)
},
}