Merged in refactor/small-cleanup (pull request #3252)
fix: some cleanup * fix: some cleanup Approved-by: Emma Zettervall
This commit is contained in:
@@ -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>
|
||||
)
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user