-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Issues connected Ref #875 Ref #876 Resolves #878 ## What has been done - Added logic for sign up form - Added message for sign up form (success, failed, invalid email) ## Testing - [x] Entering no email - "Invalid email" message is displayed - [x] Entering not valid email - "Invalid email" message is displayed - [x] Entering valid email - "Sign up successful" message is displayed - [x] If sign up successful, email input is cleared - [x] All messages (success or fail) disappears after 3 seconds - [x] After sign up, email used will be visible in customer.io -> People ## Screenshots / images / videos ![Zrzut ekranu 2023-12-12 o 15 02 53](https://github.com/tahowallet/dapp/assets/73061939/8e1cd934-c08d-44d4-81c9-372d8bbe2f2d)
- Loading branch information
Showing
5 changed files
with
112 additions
and
12 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
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 |
---|---|---|
@@ -1,5 +1,10 @@ | ||
/* eslint-disable no-useless-escape */ | ||
|
||
// Matches floating point numbers with optional thousands separators | ||
export const FLOATING_POINT_REGEX = /^[^0-9]*([0-9,]+)(?:\.([0-9]*))?$/ | ||
|
||
// Matches number values and empty string | ||
export const NUMBER_INPUT_REGEX = /^-?[0-9]*\.?[0-9]*$/ | ||
|
||
// Matches valid email | ||
export const EMAIL_REGEX = /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/g |
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