-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added open magic wallet functionality #10019
base: master
Are you sure you want to change the base?
Conversation
const openMagicWallet = async () => { | ||
try { | ||
await magic.wallet.showUI(); | ||
} catch (error) { | ||
console.trace(error); | ||
} | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we move this to useAuthentication
?
@@ -25,6 +25,8 @@ const UpdateCustomDomainTask = () => { | |||
buttonType: 'destructive', | |||
buttonHeight: 'sm', | |||
onClick: () => { | |||
console.log('communityId', communityId); | |||
console.log('customDomain', customDomain); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol nope
const openMagicWallet = async () => { | ||
try { | ||
await magic.wallet.showUI(); | ||
} catch (error) { | ||
console.trace(error); | ||
} | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets move this to useAuthentication
const userData = useUserStore(); | ||
const hasMagic = userData.addresses?.[0]?.walletId === WalletId.Magic; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
case WelcomeOnboardModalSteps.MagicWallet: { | ||
return { | ||
index: 4, | ||
title: 'Magic Wallet Creation', | ||
component: ( | ||
<MagicWalletCreationStep |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
magic wallets are only made for sms + other sso methods right? If yes shouldn't this be displayed conditionally when a signup with one of those method happens?
@@ -83,6 +83,8 @@ export enum WalletSsoSource { | |||
Twitter = 'twitter', | |||
Apple = 'apple', | |||
Email = 'email', | |||
Farcaster = 'farcaster', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is farcaster logic a part of this pr?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mzparacha this branch was made off of a branch Kurtis made, at the request of Dillon. So I believe that is a change he made.
const openMagicWallet = async () => { | ||
try { | ||
await magic.wallet.showUI(); | ||
} catch (error) { | ||
console.trace(error); | ||
} | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move to useAuthentication
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SMS login works, didn't test other sso methods. Codewise lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested, LGTM from my POV other than Malik's comments + CI failure
Link to Issue
Closes: #5309
Description of Changes
NOTE: I made these changes based off of the Figma designs. I tried desperately to embed the widget in the account creation modal as was shown in the original designs, but unfortunately widget's don't work that way. Sabina and I decided to simply replace it with an image and change the copy telling the user where they can access their magic wallet
Test Plan