-
Notifications
You must be signed in to change notification settings - Fork 1
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
Passwordless | Move sign in with password instead option #3058
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,6 +83,22 @@ export const WithNoAccountInfo = () => { | |
}; | ||
WithNoAccountInfo.storyName = 'with noAccountInfo'; | ||
|
||
export const WithShowSignInWithPasswordOption = () => { | ||
return ( | ||
<EmailSentInformationBox | ||
setRecaptchaErrorContext={() => {}} | ||
setRecaptchaErrorMessage={() => {}} | ||
changeEmailPage="#" | ||
email="[email protected]" | ||
resendEmailAction="#" | ||
noAccountInfo | ||
showSignInWithPasswordOption | ||
/> | ||
); | ||
}; | ||
WithShowSignInWithPasswordOption.storyName = | ||
'with showSignInWithPasswordOption'; | ||
|
||
export const WithTimer = () => { | ||
return ( | ||
<EmailSentInformationBox | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
sorry I'm having a bit of trouble understanding the intent (or maybe the syntax) here:
is the intention that if it has to show both links it would say
try another address or sign in with a password instead
but if it only has to one it would just say
or try another address
/or sign in with a password instead
?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.
the latter option!
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.
you can see in storybook on how it behaves: https://60929d168594f80039336501-dlorewwtdy.chromatic.com/?path=/story/components-emailsentinformationbox--with-show-sign-in-with-password-option&globals=viewport:mobile
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 a comma before 'or' correct ?
It looks weird to me but sadly I don't have an english degree to know this kind of things for sure.
edit: I mean in cases like this:
![image](https://private-user-images.githubusercontent.com/15324270/411671791-af7a56de-e1e8-49d4-a139-55bbfcec690d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTczNzAsIm5iZiI6MTczOTU5NzA3MCwicGF0aCI6Ii8xNTMyNDI3MC80MTE2NzE3OTEtYWY3YTU2ZGUtZTFlOC00OWQ0LWExMzktNTViYmZjZWM2OTBkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA1MjQzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQxYjFkOTcwZjE0OWM2YjQyMjgwMzIwZTYwZDhmYjFhNWQ4ZWU5ZGUzOGY3YjBiZWQ1OTQyZTc4ZDkyN2ZlZWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.2BvXSTyrpPOBlL-hwvcZdeCPEyaaY2oBA9ANPiCTbmQ)
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.
In generally I've always used a comma before the or in the last item in a list, so it separated from the other items in the same way, like an array.
See
Oxford comma
in the Guardian style guide: https://www.theguardian.com/guardian-observer-style-guide-o#:~:text=what%20we%20use-,Oxford%20comma,-a%20comma%20before