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: packages/react/README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,9 +143,9 @@ const web3Onboard = init({
143
143
console.log({ transaction })
144
144
if (transaction.eventCode==='txPool') {
145
145
return {
146
-
// autoDismiss set to zero will persist the notification until the user excuses it
146
+
// autoDismiss set to `0` will persist the notification until the user excuses it
147
147
autoDismiss:0,
148
-
// message: `Your transaction is pending, click <a href="https://rinkeby.etherscan.io/tx/${transaction.hash}" rel="noopener noreferrer" target="_blank">here</a> for more info.`,
148
+
// message: `Your transaction is pending, click <a href="https://rinkeby.etherscan.io/tx/${transaction.hash}">here</a> for more info.`,
149
149
// or you could use onClick for when someone clicks on the notification itself
connecting // boolean indicating if connection is in progress
279
279
},
280
280
connect, // function to call to initiate user to connect wallet
281
-
disconnect, // function to call to with wallet<DisconnectOptions> to disconnect wallet
281
+
disconnect, // function to call with wallet<DisconnectOptions> to disconnect wallet
282
282
updateBalances, // function to be called with an option array of wallet addresses connected through Onboard to update balance or empty/no params to update all connected wallets
283
-
setWalletModules // function to be called with an array of wallet modules to conditional allow connection of wallet types i.e. setWalletModules([ledger, trezor, injected])
283
+
setWalletModules // function to be called with an array of wallet modules to conditionally allow connection of wallet types i.e. setWalletModules([ledger, trezor, injected])
* Defines whether whether to subscribe to transaction events or not
369
+
* Defines whether to subscribe to transaction events or not
370
370
* default: true
371
371
*/
372
-
enabled: boolean
372
+
enabled?: boolean
373
373
/**
374
374
* Callback that receives all transaction events
375
375
* Return a custom notification based on the event
@@ -381,7 +381,7 @@ type NotifyOptions = {
381
381
) => TransactionHandlerReturn
382
382
383
383
const [
384
-
notifications, // the list of all notifications that updates when notifications are added, updated or removed
384
+
notifications, // the list of all notifications that update when notifications are added, updated or removed
385
385
customNotification, // a function that takes a customNotification object and allows custom notifications to be shown to the user, returns an update and dismiss callback
386
386
updateNotify // a function that takes a NotifyOptions object to allow updating of the properties
0 commit comments