mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 15:35:55 +01:00
🐛 Updating search engine not working
This commit is contained in:
@@ -83,49 +83,44 @@ function App(
|
|||||||
<>
|
<>
|
||||||
<CommonHead />
|
<CommonHead />
|
||||||
<SessionProvider session={pageProps.session}>
|
<SessionProvider session={pageProps.session}>
|
||||||
<PersistQueryClientProvider
|
<ColorSchemeProvider {...pageProps}>
|
||||||
client={queryClient}
|
{(colorScheme) => (
|
||||||
persistOptions={{ persister: asyncStoragePersister }}
|
<ColorTheme.Provider value={colorTheme}>
|
||||||
>
|
<MantineProvider
|
||||||
<ColorSchemeProvider {...pageProps}>
|
theme={{
|
||||||
{(colorScheme) => (
|
...theme,
|
||||||
<ColorTheme.Provider value={colorTheme}>
|
components: {
|
||||||
<MantineProvider
|
Checkbox: {
|
||||||
theme={{
|
styles: {
|
||||||
...theme,
|
input: { cursor: 'pointer' },
|
||||||
components: {
|
label: { cursor: 'pointer' },
|
||||||
Checkbox: {
|
|
||||||
styles: {
|
|
||||||
input: { cursor: 'pointer' },
|
|
||||||
label: { cursor: 'pointer' },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Switch: {
|
|
||||||
styles: {
|
|
||||||
input: { cursor: 'pointer' },
|
|
||||||
label: { cursor: 'pointer' },
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
primaryColor,
|
Switch: {
|
||||||
primaryShade,
|
styles: {
|
||||||
colorScheme,
|
input: { cursor: 'pointer' },
|
||||||
}}
|
label: { cursor: 'pointer' },
|
||||||
withGlobalStyles
|
},
|
||||||
withNormalizeCSS
|
},
|
||||||
>
|
},
|
||||||
<ConfigProvider {...props.pageProps}>
|
primaryColor,
|
||||||
<Notifications limit={4} position="bottom-left" />
|
primaryShade,
|
||||||
<ModalsProvider modals={modals}>
|
colorScheme,
|
||||||
<Component {...pageProps} />
|
}}
|
||||||
</ModalsProvider>
|
withGlobalStyles
|
||||||
</ConfigProvider>
|
withNormalizeCSS
|
||||||
</MantineProvider>
|
>
|
||||||
</ColorTheme.Provider>
|
<ConfigProvider {...props.pageProps}>
|
||||||
)}
|
<Notifications limit={4} position="bottom-left" />
|
||||||
</ColorSchemeProvider>
|
<ModalsProvider modals={modals}>
|
||||||
<ReactQueryDevtools initialIsOpen={false} />
|
<Component {...pageProps} />
|
||||||
</PersistQueryClientProvider>
|
</ModalsProvider>
|
||||||
|
</ConfigProvider>
|
||||||
|
</MantineProvider>
|
||||||
|
</ColorTheme.Provider>
|
||||||
|
)}
|
||||||
|
</ColorSchemeProvider>
|
||||||
|
<ReactQueryDevtools initialIsOpen={false} />
|
||||||
</SessionProvider>
|
</SessionProvider>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
import { QueryClient } from '@tanstack/react-query';
|
import { QueryClient } from '@tanstack/react-query';
|
||||||
|
|
||||||
export const queryClient = new QueryClient();
|
export const queryClient = new QueryClient({
|
||||||
|
defaultOptions: {
|
||||||
|
queries: {
|
||||||
|
staleTime: 1000 * 60 * 5,
|
||||||
|
refetchOnWindowFocus: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user