feat(SW-3125): Move client trpc setup * Move client trpc to package * Client setup in partner-sas * Add todo Approved-by: Linus Flood
35 lines
961 B
TypeScript
35 lines
961 B
TypeScript
import "@scandic-hotels/design-system/style.css"
|
|
import "@scandic-hotels/design-system/fonts.css"
|
|
import "@/public/_static/css/design-system-new-deprecated.css"
|
|
import "./globals.css"
|
|
|
|
import { TrpcProvider } from "@scandic-hotels/trpc/Provider"
|
|
|
|
import type { Metadata } from "next"
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Create Next App",
|
|
description: "Generated by create next app",
|
|
}
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode
|
|
}>) {
|
|
return (
|
|
<html lang="en">
|
|
<head>
|
|
{/* eslint-disable-next-line @next/next/no-css-tags */}
|
|
<link rel="stylesheet" href="/_static/css/core.css" />
|
|
{/* eslint-disable-next-line @next/next/no-css-tags */}
|
|
<link rel="stylesheet" href="/_static/css/scandic.css" />
|
|
</head>
|
|
<body className="scandic">
|
|
{/* TODO handle onError */}
|
|
<TrpcProvider>{children}</TrpcProvider>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|