fix: fixing bprogressbar styling and best practice
This commit is contained in:
parent
d6edf470b2
commit
71d7a06a8e
20
app/root.tsx
20
app/root.tsx
|
@ -55,6 +55,7 @@ export default function AppWithProviders() {
|
||||||
export function App() {
|
export function App() {
|
||||||
const data = useLoaderData<typeof loader>();
|
const data = useLoaderData<typeof loader>();
|
||||||
const [theme] = useTheme();
|
const [theme] = useTheme();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<html lang="id" className={clsx(theme)}>
|
<html lang="id" className={clsx(theme)}>
|
||||||
<head>
|
<head>
|
||||||
|
@ -65,12 +66,23 @@ export function App() {
|
||||||
<Links />
|
<Links />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<ProgressProvider startOnLoad>
|
<ProgressProvider
|
||||||
<ScrollRestoration />
|
color={theme === "dark" ? "#10b981" : "#059669"}
|
||||||
<Scripts />
|
options={{
|
||||||
<LiveReload />
|
showSpinner: false,
|
||||||
|
speed: 300,
|
||||||
|
minimum: 0.08,
|
||||||
|
easing: "ease",
|
||||||
|
positionUsing: "",
|
||||||
|
template:
|
||||||
|
'<div class="bar" role="bar"><div class="peg"></div></div>'
|
||||||
|
}}
|
||||||
|
>
|
||||||
<Outlet />
|
<Outlet />
|
||||||
</ProgressProvider>
|
</ProgressProvider>
|
||||||
|
<ScrollRestoration />
|
||||||
|
<Scripts />
|
||||||
|
<LiveReload />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue