about summary refs log tree commit diff
path: root/src/screens/Signup/BackNextButtons.tsx
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-09-20 14:10:34 -0700
committerGitHub <noreply@github.com>2024-09-20 16:10:34 -0500
commitc88b555410e7eb6f9ded4648bd6236c9f653c731 (patch)
tree5f963c743aec144223b86d5a2120c95daf7cd441 /src/screens/Signup/BackNextButtons.tsx
parente07f5d5980e7647e78bcaf10c7a239725b08ce3d (diff)
downloadvoidsky-c88b555410e7eb6f9ded4648bd6236c9f653c731.tar.zst
Validate TLD in signup (#5426)
* add lib

* add validation

* log

* add some common typos

* add tests

* reset hasWarned state on edit

* shorten path

* Move test file, adjust regex, add test

* Get real nit picky

---------

Co-authored-by: Eric Bailey <git@esb.lol>
Diffstat (limited to 'src/screens/Signup/BackNextButtons.tsx')
-rw-r--r--src/screens/Signup/BackNextButtons.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/screens/Signup/BackNextButtons.tsx b/src/screens/Signup/BackNextButtons.tsx
index 47256bf6f..e2401bb11 100644
--- a/src/screens/Signup/BackNextButtons.tsx
+++ b/src/screens/Signup/BackNextButtons.tsx
@@ -15,6 +15,7 @@ export interface BackNextButtonsProps {
   onBackPress: () => void
   onNextPress?: () => void
   onRetryPress?: () => void
+  overrideNextText?: string
 }
 
 export function BackNextButtons({
@@ -25,6 +26,7 @@ export function BackNextButtons({
   onBackPress,
   onNextPress,
   onRetryPress,
+  overrideNextText,
 }: BackNextButtonsProps) {
   const {_} = useLingui()
 
@@ -63,7 +65,7 @@ export function BackNextButtons({
             disabled={isLoading || isNextDisabled}
             onPress={onNextPress}>
             <ButtonText>
-              <Trans>Next</Trans>
+              {overrideNextText ? overrideNextText : <Trans>Next</Trans>}
             </ButtonText>
             {isLoading && <ButtonIcon icon={Loader} />}
           </Button>