fix: move fonts and refactor headers in middleware

This commit is contained in:
Christel Westerberg
2024-05-28 12:15:40 +02:00
parent f04247ed43
commit cd3c5491ec
9 changed files with 13 additions and 37 deletions

View File

@@ -1,7 +1,7 @@
import "@/app/globals.css"
import "@scandic-hotels/design-system/style.css"
import { biroScriptPlus, firaMono, firaSans } from "@/app/[lang]/fonts"
import { biroScriptPlus, firaMono, firaSans } from "@/app/fonts"
import styles from "./layout.module.css"

View File

@@ -1,22 +0,0 @@
import { cookies, headers } from "next/headers"
import { serverClient } from "@/lib/trpc/server"
import type { Metadata } from "next"
export const metadata: Metadata = {
title: "Hello World from Webview",
}
export default async function WebViewTestPage() {
const data = await serverClient().user.get()
return (
<main>
<header>
<h1>Hello From WebView Test Page!</h1>
<p>{data.firstName}</p>
</header>
</main>
)
}