Add conditional rendering of SIWE tooltip #304
Drewsapple
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
For my own use: |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When SIWE is enabled, the profile page of the modal has a tooltip and a badge on the SIWE button in the top left that says "You're not signed in to this app. Sign in with Ethereum to continue." While this is helpful to have as a base case, I have some pages in my app that don't need SIWE, but just a connected wallet. I have the
disableSiweRedirect: true
flag enabled in my ConnectKit Provider options, which stops most users from feeling they need to sign-in (as the connect modal closes after connecting).However, users going to disconnect/reconnect on these pages see this tooltip and get confused. I'd like to disable the tooltip (the badge is fine), as all of my SIWE-requiring pages have a separate button that requests the signature if they're not signed in.
IMO, the tooltip should disappear if with
disableSiweRedirect: true
but a separate flag for this would also work.I'd be happy to implement this in a PR if someone at Family gave me direction on how the option should be expressed in the provider.
Beta Was this translation helpful? Give feedback.
All reactions