-
Notifications
You must be signed in to change notification settings - Fork 649
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e50fad6
commit a5be5de
Showing
3 changed files
with
30 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ internal class NetworkingLinkSignupPreviewParameterProvider : | |
emailEntered(), | ||
invalidEmail(), | ||
instantDebits(), | ||
instantDebitsInvalidPhoneNumber(), | ||
) | ||
|
||
private fun default() = NetworkingLinkSignupState( | ||
|
@@ -109,6 +110,35 @@ internal class NetworkingLinkSignupPreviewParameterProvider : | |
isInstantDebits = true, | ||
) | ||
|
||
private fun instantDebitsInvalidPhoneNumber() = NetworkingLinkSignupState( | ||
payload = Success( | ||
NetworkingLinkSignupState.Payload( | ||
merchantName = "Test", | ||
emailController = EmailConfig.createController( | ||
initialValue = "[email protected]", | ||
), | ||
phoneController = PhoneNumberController.createPhoneNumberController( | ||
initialValue = "5555555555", | ||
initiallySelectedCountryCode = "US", | ||
), | ||
isInstantDebits = true, | ||
content = linkLoginPane(), | ||
) | ||
), | ||
validEmail = "[email protected]", | ||
validPhone = "5555555555", | ||
lookupAccount = Success( | ||
ConsumerSessionLookup( | ||
exists = false, | ||
consumerSession = null, | ||
errorMessage = null | ||
) | ||
), | ||
saveAccountToLink = Uninitialized, | ||
isInstantDebits = true, | ||
phoneError = "The phone number provided was invalid.", | ||
) | ||
|
||
private fun networkingLinkSignupPane() = NetworkingLinkSignupPane( | ||
aboveCta = "By saving your account to Link, you agree to Link’s Terms and Privacy Policy", | ||
body = NetworkingLinkSignupBody( | ||
|
Binary file added
BIN
+44.4 KB
...etworkingLinkSignupPane_NetworkingLinkSignupScreenPreview_0_null_4,NEXUS_5].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+25.7 KB
...etworkingLinkSignupPane_NetworkingLinkSignupScreenPreview_0_null_4,PIXEL_C].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.