Adds a convenient widget to any dapp that wants to use the functionalities of push and chat without any of the hassle.
At the root of the project run the following commands
- Choose the packages you want to update and add a summary.
yarn changeset
- Version your latest change(s)
yarn changeset version
- Publish your package(s)
yarn changeset publish
Refer to changesets docs for more information.
import { W3iWidget } from "@web3inbox/react-widget";
import "@web3inbox/widget-react/dist/compiled.css";
...
<W3iWidget
account="ep155:1:0xd7..."
onSign={() => {}}
onConnect={() => {}}
</W3iWidget>