echoes/frontend/app/root.tsx
lsy b689233e91 后端:新增主题配置获取接口。
前端:配置了默认环境变量值,创建自定义路由,将契约和服务合并到核心
2024-11-27 01:02:05 +08:00

39 lines
797 B
TypeScript

import {
Links,
Meta,
Outlet,
ScrollRestoration,
} from "@remix-run/react";
import { BaseProvider } from "hooks/servicesProvider";
import { LinksFunction } from "@remix-run/react/dist/routeModules";
import "~/tailwind.css";
export function Layout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="generator" content="echoes" />
<Meta />
<Links />
</head>
<body>
{children}
<ScrollRestoration />
</body>
</html>
);
}
export default function App() {
return (
<BaseProvider>
<Layout>
<Outlet />
</Layout>
</BaseProvider>
);
}