mirror of
https://github.com/luxfi/dex.git
synced 2026-09-24 00:26:31 +00:00
docs/app/layout.tsx referenced ZenMono without importing it and without @hanzo/font in its dependencies at all, so the docs site could not compile: tsc reports "Cannot find name 'ZenMono'" on the bare tree. Both faces are imported from the package now, and the package is declared. The README hero card still asked for Inter.
40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
import "./global.css"
|
|
import { RootProvider } from "@hanzo/docs-ui/provider/next"
|
|
import { Zen } from "@hanzo/font/sans"
|
|
import { ZenMono } from "@hanzo/font/mono"
|
|
import type { ReactNode } from "react"
|
|
|
|
export const metadata = {
|
|
title: {
|
|
default: "LX - Ultra-High Performance Decentralized Exchange Documentation",
|
|
template: "%s | LX - Ultra-High Performance Decentralized Exchange",
|
|
},
|
|
description: "434M+ orders/sec, sub-microsecond latency, quantum-resistant",
|
|
}
|
|
|
|
export default function Layout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html
|
|
lang="en"
|
|
className={`${Zen.variable} ${ZenMono.variable}`}
|
|
suppressHydrationWarning
|
|
>
|
|
<body className="min-h-svh bg-background font-sans antialiased">
|
|
<RootProvider
|
|
search={{
|
|
enabled: true,
|
|
}}
|
|
theme={{
|
|
enabled: true,
|
|
defaultTheme: "dark",
|
|
}}
|
|
>
|
|
<div className="relative flex min-h-svh flex-col bg-background">
|
|
{children}
|
|
</div>
|
|
</RootProvider>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|