mirror of
https://github.com/Xevion/banner.git
synced 2025-12-06 09:14:24 -06:00
fix: limit devtools panel to dev mode
This commit is contained in:
@@ -15,17 +15,19 @@ export const Route = createRootRoute({
|
|||||||
>
|
>
|
||||||
<Theme accentColor="blue" grayColor="gray">
|
<Theme accentColor="blue" grayColor="gray">
|
||||||
<Outlet />
|
<Outlet />
|
||||||
<TanstackDevtools
|
{import.meta.env.DEV ? (
|
||||||
config={{
|
<TanstackDevtools
|
||||||
position: "bottom-left",
|
config={{
|
||||||
}}
|
position: "bottom-left",
|
||||||
plugins={[
|
}}
|
||||||
{
|
plugins={[
|
||||||
name: "Tanstack Router",
|
{
|
||||||
render: <TanStackRouterDevtoolsPanel />,
|
name: "Tanstack Router",
|
||||||
},
|
render: <TanStackRouterDevtoolsPanel />,
|
||||||
]}
|
},
|
||||||
/>
|
]}
|
||||||
|
/>
|
||||||
|
) : null}
|
||||||
</Theme>
|
</Theme>
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user