forked from cerc-io/snowballtools-base
This PR centralizes all the environment variable references into a single constants file. The change includes replacing various `import.meta.env` references with imports from the new `utils/constants` module. This improves maintainability by providing a single place to manage environment variables.
17 lines
497 B
TypeScript
17 lines
497 B
TypeScript
import { ReactNode } from 'react';
|
|
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
|
|
import { VITE_WALLET_CONNECT_ID } from 'utils/constants';
|
|
|
|
const queryClient = new QueryClient();
|
|
|
|
if (!VITE_WALLET_CONNECT_ID) {
|
|
throw new Error('Error: REACT_APP_WALLET_CONNECT_ID env config is not set');
|
|
}
|
|
|
|
export default function Web3Provider({ children }: { children: ReactNode }) {
|
|
return (
|
|
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
|
|
);
|
|
}
|