Skip to content

Commit

Permalink
Remove check for google client id
Browse files Browse the repository at this point in the history
  • Loading branch information
wryonik committed Aug 5, 2024
1 parent 6203fb7 commit 067780f
Showing 1 changed file with 19 additions and 39 deletions.
58 changes: 19 additions & 39 deletions packages/app/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,42 +31,22 @@ const config = createConfig({
connectors: connectors,
});

if (import.meta.env.VITE_GOOGLE_CLIENT_ID) {
ReactDOM.render(
<React.StrictMode>
<ZkRegexProvider
clientId={import.meta.env.VITE_GOOGLE_CLIENT_ID}
zkRegexRegistryUrl="https://registry-dev.zkregex.com"
>
<WagmiConfig config={config}>
<RainbowKitProvider chains={[sepolia]} theme={darkTheme()}>
<GoogleOAuthProvider
clientId={import.meta.env.VITE_GOOGLE_CLIENT_ID}
>
<GoogleAuthProvider>
<App />
</GoogleAuthProvider>
</GoogleOAuthProvider>
</RainbowKitProvider>
</WagmiConfig>{" "}
</ZkRegexProvider>
</React.StrictMode>,
document.getElementById("root")
);
} else {
ReactDOM.render(
<React.StrictMode>
<ZkRegexProvider
clientId={import.meta.env.VITE_GOOGLE_CLIENT_ID}
zkRegexRegistryUrl="https://registry-dev.zkregex.com"
>
<WagmiConfig config={config}>
<RainbowKitProvider chains={[sepolia]} theme={darkTheme()}>
<App />
</RainbowKitProvider>
</WagmiConfig>
</ZkRegexProvider>
</React.StrictMode>,
document.getElementById("root")
);
}
ReactDOM.render(
<React.StrictMode>
<ZkRegexProvider
clientId={import.meta.env.VITE_GOOGLE_CLIENT_ID}
zkRegexRegistryUrl="https://registry-dev.zkregex.com"
>
<WagmiConfig config={config}>
<RainbowKitProvider chains={[sepolia]} theme={darkTheme()}>
<GoogleOAuthProvider clientId={import.meta.env.VITE_GOOGLE_CLIENT_ID}>
<GoogleAuthProvider>
<App />
</GoogleAuthProvider>
</GoogleOAuthProvider>
</RainbowKitProvider>
</WagmiConfig>{" "}
</ZkRegexProvider>
</React.StrictMode>,
document.getElementById("root")
);

0 comments on commit 067780f

Please sign in to comment.