wallet-connect-web-examples/dapps/react-dapp-v2/src/index.tsx

31 lines
703 B
TypeScript
Raw Normal View History

import * as React from "react";
import * as ReactDOM from "react-dom";
import { createGlobalStyle } from "styled-components";
2022-02-04 15:02:24 +00:00
import { ClientContextProvider } from "./contexts/ClientContext";
import { JsonRpcContextProvider } from "./contexts/JsonRpcContext";
import App from "./App";
import { globalStyle } from "./styles";
const GlobalStyle = createGlobalStyle`
${globalStyle}
`;
declare global {
// tslint:disable-next-line
interface Window {
blockies: any;
}
}
ReactDOM.render(
<>
<GlobalStyle />
2022-02-04 15:02:24 +00:00
<ClientContextProvider>
<JsonRpcContextProvider>
<App />
</JsonRpcContextProvider>
2022-02-04 15:02:24 +00:00
</ClientContextProvider>
</>,
document.getElementById("root"),
);