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>
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user