idk
This commit is contained in:
parent
ec402fc38c
commit
8ba1302c6b
30
app/root.tsx
30
app/root.tsx
|
@ -3,19 +3,22 @@ import {
|
||||||
Meta,
|
Meta,
|
||||||
Outlet,
|
Outlet,
|
||||||
Scripts,
|
Scripts,
|
||||||
ScrollRestoration,
|
ScrollRestoration
|
||||||
} from "@remix-run/react";
|
} from "@remix-run/react"
|
||||||
|
|
||||||
import stylesheet from "./tailwind.css?url";
|
import stylesheet from "./tailwind.css?url"
|
||||||
import { LinksFunction } from "@remix-run/node";
|
import { LinksFunction } from "@remix-run/node"
|
||||||
|
|
||||||
// Supports weights 200-800
|
// Supports weights 200-800
|
||||||
import '@fontsource-variable/manrope';
|
import "@fontsource-variable/manrope"
|
||||||
|
import { Refine } from "@refinedev/core"
|
||||||
|
import routerProvider from "@refinedev/remix-router";
|
||||||
|
import { authProvider } from "./data/auth-provider"
|
||||||
|
|
||||||
export const links: LinksFunction = () => [
|
export const links: LinksFunction = () => [
|
||||||
{ rel: "stylesheet", href: stylesheet },
|
{ rel: "stylesheet", href: stylesheet }
|
||||||
// { rel: "stylesheet", href: manropeStylesheet },
|
// { rel: "stylesheet", href: manropeStylesheet },
|
||||||
];
|
]
|
||||||
|
|
||||||
export function Layout({ children }: { children: React.ReactNode }) {
|
export function Layout({ children }: { children: React.ReactNode }) {
|
||||||
return (
|
return (
|
||||||
|
@ -27,18 +30,23 @@ export function Layout({ children }: { children: React.ReactNode }) {
|
||||||
<Links />
|
<Links />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{children}
|
<Refine
|
||||||
|
authProvider={authProvider}
|
||||||
|
routerProvider={routerProvider}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</Refine>
|
||||||
<ScrollRestoration />
|
<ScrollRestoration />
|
||||||
<Scripts />
|
<Scripts />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
return <Outlet />;
|
return <Outlet />
|
||||||
}
|
}
|
||||||
|
|
||||||
export function HydrateFallback() {
|
export function HydrateFallback() {
|
||||||
return <p>Loading...</p>;
|
return <p>Loading...</p>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue