javascript icon indicating copy to clipboard operation
javascript copied to clipboard

feat(clerk-js,clerk-react,types): Add closeUserButton and openUserBut…

Open igneel64 opened this issue 3 years ago • 0 comments

…ton methods

Type of change

  • [ ] 🐛 Bug fix
  • [x] 🌟 New feature
  • [ ] 🔨 Breaking change
  • [ ] 📖 Refactoring / dependency upgrade / documentation
  • [ ] other:

Packages affected

  • [x] @clerk/clerk-js
  • [x] @clerk/clerk-react
  • [ ] @clerk/nextjs
  • [ ] @clerk/remix
  • [x] @clerk/types
  • [ ] @clerk/clerk-expo
  • [ ] @clerk/backend-core
  • [ ] @clerk/clerk-sdk-node
  • [ ] @clerk/edge
  • [ ] build/tooling/chore

Description

  • [x] npm test runs as expected.
  • [x] npm run build runs as expected.

Introduce closeUserButton and openUserButton methods to programmatically control visibility of the <UserButton /> component. These methods can be used directly from the Clerk object or from the useClerk hook (This object was selected as we already have the openXModal methods there) .

https://www.notion.so/clerkdev/a853f869f69c414b85e6d5290a2c4172?v=7792dc836db24909bd1f89501b5b331f&p=3ec7be1aa49b4c179a6b925b86d3ecb9

igneel64 avatar Jul 04 '22 21:07 igneel64