-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.tsx
29 lines (24 loc) · 971 Bytes
/
main.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import React from "react";
import ReactDOM from "react-dom/client";
import { HashRouter } from "react-router-dom";
import { QueryClient, QueryClientProvider } from "react-query";
import { HausThemeProvider } from "@daohaus/ui";
import { App } from "./App";
import "./App.css";
import { dinDarkTheme } from "./themes/dark";
// import { Buffer } from "buffer";
// // This solves an issue when using WalletConnect and intercept Txs to create dao proposals
// // Related open issue: https://github.com/WalletConnect/walletconnect-monorepo/issues/748
// window.Buffer = window.Buffer || Buffer;
const queryClient = new QueryClient();
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
<React.StrictMode>
<HashRouter>
<QueryClientProvider client={queryClient}>
<HausThemeProvider defaultDark={dinDarkTheme}>
<App />
</HausThemeProvider>
</QueryClientProvider>
</HashRouter>
</React.StrictMode>
);