-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add Custom onboarding pages #209
Conversation
src/onboarding/Login.jsx
Outdated
const handleGoogleLogin = async () => { | ||
await signIn.authenticateWithRedirect({ | ||
strategy: 'oauth_google', | ||
redirectUrl: |
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.
Need to update the redirect URL with the Nethermind account redirect URL (need to setup in clerk dashboard)
{...register('email', { | ||
required: 'Email is required', | ||
pattern: { | ||
value: RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/), |
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.
Hmm emails are notoriously hard to create a regex for. This is definitely too simple, but I guess we don't really need to do validation so strictly. If the user never receive an OTP through the email that means they have made a mistake on their end
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.
context for the curios https://stackoverflow.com/a/201378
@@ -62,7 +72,8 @@ export default { | |||
outline: '#293041', | |||
primary: '#cad7f9', | |||
secondary: '#ffcc80', | |||
success: '#7ccb69' | |||
success: '#7ccb69', | |||
danger: '#d24646' |
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.
nit
: why not re-use our error
variants?
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.
Carlos asked to use this color 😬
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.
Did you let him know there is already something similar with our error
variants?
As discussed with Clem, hiding google login till oAuth is setup. |
react-hook-form
is used for form validation.