17 | {children}
18 | {message ? (
19 |
20 | {message}
21 |
22 | ) : (
23 | undefined
24 | )}
25 |
26 | );
27 | };
28 |
29 | export { WidgetTooltip };
30 |
--------------------------------------------------------------------------------
/packages/wallet-ui/src/index.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import ReactDOM from "react-dom";
3 | import { Provider } from "react-redux";
4 | import { Web3Provider } from "ethers/providers";
5 |
6 | import App from "./App";
7 | import store from "./store/store";
8 | import { EthereumService } from "./providers/EthereumService";
9 |
10 | const provider = new Web3Provider(window.ethereum);
11 | const signer = provider.getSigner();
12 |
13 | const context = { provider, signer };
14 |
15 | ReactDOM.render(
16 |