0.0.18-alpha.0 • Published 5 years ago
@mikelockzrimble/connection-banner v0.0.18-alpha.0
@rimble/connection-banner
Web3 React component built with Rimble UI that will display an informative banner when the user is not in a web3 capable browser, or when the current browser does not have a wallet available, or when the current ethereum network does not match the required network.
Installation
Install the package in your project directory with:
// with npm
npm install @rimble/connection-banner
// with yarn
yarn add @rimble/connection-banner
Usage Example
import ConnectionBanner from '@rimble/connection-banner';
<ConnectionBanner
currentNetwork={3}
requiredNetwork={1}
onWeb3Fallback={true}
/>;
Props
Name | Type | Default | Description |
---|---|---|---|
currentNetwork | integer | none | The network ID that the user is connected to, if available |
requiredNetwork | integer | none | The network ID that the dApp requires to function |
onWeb3Fallback | boolean | false | Set to true when you connect to a smart contract via a provider like infura |
Documentation
Issues
Open an issue for any bugs or feature requests
Contributing
We are open source and welcome your contributions !
License
MIT © ConsenSys
0.0.18-alpha.0
5 years ago
0.0.17-alpha.0
5 years ago
0.0.15-alpha.0
5 years ago
0.0.14-alpha.0
5 years ago
0.0.13-alpha.0
5 years ago
0.0.12-alpha.0
5 years ago
0.0.11-alpha.0
5 years ago
0.0.10-alpha.0
5 years ago
0.0.9-alpha.0
5 years ago
0.0.8-alpha.0
5 years ago
0.0.7-alpha.0
5 years ago
0.0.6-alpha.0
5 years ago
0.0.5-alpha.0
5 years ago
0.0.4-alpha.0
5 years ago
0.0.3-alpha.0
5 years ago
0.0.2-alpha.0
5 years ago
0.0.1-alpha.0
5 years ago
0.0.0-alpha.0
5 years ago