Skip to content

Conversation

@Adamj1232
Copy link
Contributor

@Adamj1232 Adamj1232 commented Jun 23, 2022

Description

Added React hooks for all exposed API actions:
useConnectedWallet

  • updateBalance
  • setWalletModules

useNotifications

  • notifications
  • customNotifications
  • updateNotify

useAccountCenter

  • updateAccountCenter

useSetLocale

  • updateLocale

Updated OnboardAPI type to include actions

Checklist

  • The version field in package.json is incremented following semantic versioning
  • The box that allows repo maintainers to update this PR is checked
  • I tested locally to make sure this feature/fix works
  • This PR passes the Circle CI checks

Adamj1232 and others added 6 commits June 23, 2022 11:18
@taylorjdawson
Copy link
Contributor

@Adamj1232 This is obvious but all code works if copy and pasted right? just checking 😄

@Adamj1232 Adamj1232 requested a review from taylorjdawson June 23, 2022 17:25
@Adamj1232
Copy link
Contributor Author

@Adamj1232 This is obvious but all code works if copy and pasted right? just checking 😄

Yes sir! Copied it right out of my testing from the reactdemo project

@Adamj1232
Copy link
Contributor Author

@taylorjdawson I dont know if it would be beneficial but with the OnboardAPI type with action props now we could add functionality to the Vue project if worth while

@Adamj1232 Adamj1232 merged commit 8b84d1c into v2-web3-onboard-develop Jun 24, 2022
@Adamj1232 Adamj1232 deleted the feature/react_hook_updates branch June 24, 2022 16:22
This was referenced Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants