chore: move type
This commit is contained in:
@@ -20,6 +20,7 @@ import {
|
|||||||
BenefitValueProps,
|
BenefitValueProps,
|
||||||
ComparisonLevel,
|
ComparisonLevel,
|
||||||
LevelSummaryProps,
|
LevelSummaryProps,
|
||||||
|
OverviewTableTitleProps,
|
||||||
} from "@/types/components/loyalty/blocks"
|
} from "@/types/components/loyalty/blocks"
|
||||||
|
|
||||||
// These should ultimately be fetched from Contentstack
|
// These should ultimately be fetched from Contentstack
|
||||||
@@ -51,13 +52,6 @@ const titleTranslations = {
|
|||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
type TitleTranslation = {
|
|
||||||
text: string
|
|
||||||
highlight: boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
type OverviewTableTitleProps = { texts: TitleTranslation[] }
|
|
||||||
|
|
||||||
function OverviewTableTitle({ texts }: OverviewTableTitleProps) {
|
function OverviewTableTitle({ texts }: OverviewTableTitleProps) {
|
||||||
return (
|
return (
|
||||||
<Title as="h1" level="h1" weight="semiBold" uppercase>
|
<Title as="h1" level="h1" weight="semiBold" uppercase>
|
||||||
|
|||||||
@@ -96,7 +96,8 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
bottom: var(--Spacing-x2);
|
bottom: 0;
|
||||||
|
margin-bottom: calc(var(--Spacing-x2) * -1);
|
||||||
left: 50%;
|
left: 50%;
|
||||||
right: 0;
|
right: 0;
|
||||||
margin-right: calc(var(--Spacing-x2) * -1);
|
margin-right: calc(var(--Spacing-x2) * -1);
|
||||||
|
|||||||
@@ -23,6 +23,13 @@ export type Content = { content: RteBlockContent["content"]["content"] }
|
|||||||
|
|
||||||
type Benefit = { title: string; description: string }
|
type Benefit = { title: string; description: string }
|
||||||
|
|
||||||
|
type OverviewTableTitleTranslation = {
|
||||||
|
text: string
|
||||||
|
highlight: boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
export type OverviewTableTitleProps = { texts: OverviewTableTitleTranslation[] }
|
||||||
|
|
||||||
export type Level = {
|
export type Level = {
|
||||||
tier: number
|
tier: number
|
||||||
name: string
|
name: string
|
||||||
|
|||||||
Reference in New Issue
Block a user