fix: refactor token usage and types
This commit is contained in:
@@ -16,7 +16,7 @@ export const firaSans = Fira_Sans({
|
||||
export const biroScriptPlus = localFont({
|
||||
src: [
|
||||
{
|
||||
path: "../../../public/_static/fonts/biro-script-plus/Biro-Script-Plus.ttf",
|
||||
path: "../../public/_static/fonts/biro-script-plus/Biro-Script-Plus.ttf",
|
||||
style: "normal",
|
||||
weight: "500",
|
||||
},
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
.layout {
|
||||
padding-bottom: 7.7rem;
|
||||
font-family: var(--ff-fira-sans);
|
||||
background-color: var(--Brand-Coffee-Subtle);
|
||||
background-color: var(--Scandic-Brand-Warm-White);
|
||||
min-height: 100dvh;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
.blocks {
|
||||
display: grid;
|
||||
gap: 4.2rem;
|
||||
padding-left: 2rem;
|
||||
padding-right: 2rem;
|
||||
padding-top: 2rem;
|
||||
gap: var(--Spacing-x5);
|
||||
padding: var(--Spacing-x2);
|
||||
}
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
.content {
|
||||
display: grid;
|
||||
padding-top: 2rem;
|
||||
padding-left: 2rem;
|
||||
padding-right: 2rem;
|
||||
gap: 4.2rem;
|
||||
padding: var(--Spacing-x2);
|
||||
gap: var(--Spacing-x5);
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
margin-left: calc(2rem * -1);
|
||||
margin-right: calc(2rem * -1);
|
||||
margin-left: calc(var(--Spacing-x2) * -1);
|
||||
margin-right: calc(var(--Spacing-x2) * -1);
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ export function Blocks({ lang, blocks }: BlocksProps & LangParams) {
|
||||
case LoyaltyBlocksTypenameEnum.LoyaltyPageBlocksDynamicContent:
|
||||
const dynamicContent = {
|
||||
...block.dynamic_content,
|
||||
linK: block.dynamic_content.link
|
||||
link: block.dynamic_content.link
|
||||
? {
|
||||
...block.dynamic_content.link,
|
||||
href: modWebviewLink(block.dynamic_content.link.href, lang),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
.overviewLink {
|
||||
font-size: 1.6rem;
|
||||
font-size: var(--Spacing-x2);
|
||||
color: var(--Scandic-Brand-Burgundy, #4d001b);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -10,7 +10,7 @@ type CreateContextOptions = {
|
||||
pathname: string
|
||||
uid?: string | null
|
||||
url: string
|
||||
webToken: string | undefined
|
||||
webToken?: string
|
||||
}
|
||||
|
||||
/** Use this helper for:
|
||||
|
||||
Reference in New Issue
Block a user