You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/routes/docs/[...1]overview/[...1]introduction.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Web3-Onboard is the quickest and easiest way to add multi-wallet and multi-chain
23
23
-**Unified Provider Interface:** All wallet modules expose a provider that is patched to be compliant with the EIP-1193, EIP-1102, EIP-3085 and EIP-3326 specifications. Whether your user is using Ledger or Metamask the provider will operate identically.
24
24
25
25
-**Dynamic Imports:** Supporting multiple wallets in your app requires a lot of dependencies. Onboard dynamically imports a wallet
26
-
and it's dependencies only when the user selects it, so that minimal bandwidth is used.
26
+
and its dependencies only when the user selects it, so that minimal bandwidth is used.
27
27
28
28
-**Framework Agnostic:** Avoid framework lock in -- Web3-Onboard works with any framework and includes helper packages for vue & react.
Copy file name to clipboardExpand all lines: docs/src/routes/docs/[...3]modules/core.md
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -141,7 +141,7 @@ type AppMetadata = {
141
141
}
142
142
143
143
typeTermsOfServiceAgreementOptions= {
144
-
// user aggrees with exact version of terms and privacy policy
144
+
// user agrees with exact version of terms and privacy policy
145
145
version:string
146
146
// url that points to the Terms & Conditions of the dapp
147
147
termsUrl?:string
@@ -171,7 +171,7 @@ type ConnectModalOptions = {
171
171
```
172
172
173
173
**`i18n`**
174
-
An object that defines the display text for different locales. Can also be used to override the default text. To override the default text, pass in a object for the `en` locale.
174
+
An object that defines the display text for different locales. Can also be used to override the default text. To override the default text, pass in an object for the `en` locale.
175
175
176
176
```typescript
177
177
typeLocale=string// eg 'en', 'es'
@@ -212,7 +212,7 @@ It will allow you to customize the look and feel of web3-onboard, try different
212
212
:::
213
213
214
214
**`accountCenter`**
215
-
An object that defines whether the account center UI (default and minimal) is enabled and it's position on the screen. Currently the account center is enabled for both desktop and mobile devices.
215
+
An object that defines whether the account center UI (default and minimal) is enabled and its position on the screen. Currently the account center is enabled for both desktop and mobile devices.
216
216
217
217
```ts
218
218
exporttypeAccountCenter= {
@@ -251,7 +251,7 @@ type ContainerElements = {
251
251
```
252
252
253
253
**`notify`**
254
-
Notify provides by default transaction notifications for all connected wallets on the current blockchain. When switching chains the previous chain listeners remain active for 60 seconds to allow capture and report of an remaining transactions that may be in flight.
254
+
Notify provides by default transaction notifications for all connected wallets on the current blockchain. When switching chains the previous chain listeners remain active for 60 seconds to allow capture and report of remaining transactions that may be in flight.
255
255
By default transaction notifications are captured if a DAppID is provided in the Onboard config along with the Account Center being enabled.
256
256
An object that defines whether transaction notifications will display (defaults to true if an API key is provided). This object contains an `enabled` flag prop and an optional `transactionHandler` which is a callback that can disable or allow customizations of notifications.
257
257
Currently notifications are positioned in the same location as the account center (either below, if the Account Center is positioned along the top, or above if positioned on the bottom of the view).
@@ -754,7 +754,7 @@ setTimeout(
754
754
```
755
755
756
756
**`preflightNotifications`**
757
-
Notify can be used to deliver standard notifications along with preflight information by passing a `PreflightNotificationsOptions` object to the `preflightNotifications` action. This will return a a promise that resolves to the transaction hash (if `sendTransaction` resolves the transaction hash and is successful), the internal notification id (if no `sendTransaction` function is provided) or return nothing if an error occurs or `sendTransaction` is not provided or doesn't resolve to a string.
757
+
Notify can be used to deliver standard notifications along with preflight information by passing a `PreflightNotificationsOptions` object to the `preflightNotifications` action. This will return a promise that resolves to the transaction hash (if `sendTransaction` resolves the transaction hash and is successful), the internal notification id (if no `sendTransaction` function is provided) or return nothing if an error occurs or `sendTransaction` is not provided or doesn't resolve to a string.
758
758
759
759
Preflight event types include
760
760
@@ -852,11 +852,11 @@ The `setChain` methods takes an options object with a `chainId` property hex enc
852
852
853
853
## Custom Styling
854
854
855
-
The Onboard styles can customized via [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties). The following properties and their default properties can be customized by adding these variables to the `:root` in your CSS file:
855
+
The Onboard styles can be customized via [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties). The following properties and their default properties can be customized by adding these variables to the `:root` in your CSS file:
856
856
857
857
```css
858
858
:root {
859
-
/* CUSTOMIZE THE COLOR PALLETTE*/
859
+
/* CUSTOMIZE THE COLOR PALETTE*/
860
860
--onboard-white: white;
861
861
--onboard-black: black;
862
862
--onboard-primary-1: #2f80ed;
@@ -1057,7 +1057,7 @@ The Onboard styles can customized via [CSS variables](https://developer.mozilla.
1057
1057
1058
1058
## Build Environments
1059
1059
1060
-
Many of the wallet modules require dependencies that are not normally included in browser builds (namely the node builtin modules such as `crypto`, `buffer`, `util` etc). If you are having build issues you can try the following bundler configs to resolve these dependency issues:
1060
+
Many of the wallet modules require dependencies that are not normally included in browser builds (namely the node built-in modules such as `crypto`, `buffer`, `util` etc). If you are having build issues you can try the following bundler configs to resolve these dependency issues:
1061
1061
1062
1062
### Webpack 4
1063
1063
@@ -1138,7 +1138,7 @@ module.exports = {
1138
1138
1139
1139
#### If using create-react-app
1140
1140
1141
-
[CRACO](https://www.npmjs.com/package/@craco/craco) provides an similar way to override webpack config which is obfuscated in Create React App built applications.
1141
+
[CRACO](https://www.npmjs.com/package/@craco/craco) provides a similar way to override webpack config which is obfuscated in Create React App built applications.
1142
1142
1143
1143
The above webpack 5 example can be used in the `craco.config.js` file at the root level in this case.
Copy file name to clipboardExpand all lines: docs/src/routes/docs/[...3]modules/react.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# React
2
2
3
-
A collection of React hooks for implementing web3-onboard in to a React project
3
+
A collection of React hooks for implementing web3-onboard into a React project
4
4
5
5
## Quickstart with Injected Wallets and Ethers Provider
6
6
@@ -395,7 +395,7 @@ updateLocale('es')
395
395
396
396
## Build Environments
397
397
398
-
Many of the wallet modules require dependencies that are not normally included in browser builds (namely the node builtin modules such as `crypto`, `buffer`, `util` etc). If you are having build issues you can try the following bundler configs to resolve these dependency issues:
398
+
Many of the wallet modules require dependencies that are not normally included in browser builds (namely the node built-in modules such as `crypto`, `buffer`, `util` etc). If you are having build issues you can try the following bundler configs to resolve these dependency issues:
399
399
400
400
### Webpack 4
401
401
@@ -476,7 +476,7 @@ module.exports = {
476
476
477
477
#### If using create-react-app
478
478
479
-
[CRACO](https://www.npmjs.com/package/@craco/craco) provides an similar way to override webpack config which is obfuscated in Create React App built applications.
479
+
[CRACO](https://www.npmjs.com/package/@craco/craco) provides a similar way to override webpack config which is obfuscated in Create React App built applications.
480
480
481
481
The above webpack 5 example can be used in the `craco.config.js` file at the root level in this case.
0 commit comments