Merged in chore/BOOK-708-replace-title-component (pull request #3414)
Chore/BOOK-708 replace title component * chore(BOOK-708): replace title with typography * chore(BOOK-708): replace title with typography * chore(BOOK-708): remove Title from package.json Approved-by: Linus Flood Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
.title {
|
||||
color: var(--Text-Heading);
|
||||
}
|
||||
@@ -4,7 +4,9 @@ import { useState } from "react"
|
||||
import { useInterval } from "usehooks-ts"
|
||||
|
||||
import { dt } from "@scandic-hotels/common/dt"
|
||||
import Title from "@scandic-hotels/design-system/Title"
|
||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||
|
||||
import styles from "./countdown.module.css"
|
||||
|
||||
import type { CountdownProps } from "@/types/components/countdown"
|
||||
|
||||
@@ -28,8 +30,8 @@ export default function Countdown({
|
||||
)
|
||||
|
||||
return (
|
||||
<Title as="h1">
|
||||
<Typography variant="Title/lg" className={styles.title}>
|
||||
<time dateTime={time.toISOString()}>{time.format("m:ss")}</time>
|
||||
</Title>
|
||||
</Typography>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user