+ <>
-
- {children}
-
+ {children}
-
+ >
);
};
-export const ScaffoldEthAppWithProviders = ({ children }: { children: React.ReactNode }): JSX.Element => {
+export const queryClient = new QueryClient({
+ defaultOptions: {
+ queries: {
+ refetchOnWindowFocus: false,
+ },
+ },
+});
+
+export const ScaffoldEthAppWithProviders = ({ children }: { children: React.ReactNode }) => {
+ const { resolvedTheme } = useTheme();
+ const isDarkMode = resolvedTheme === "dark";
const [mounted, setMounted] = useState(false);
- const [error, setError] = useState