Skip to content

Commit

Permalink
feat: disable when input empty or error
Browse files Browse the repository at this point in the history
  • Loading branch information
hz002 committed Nov 27, 2024
1 parent c69f647 commit a3054ef
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export const ImportPrivateKeyScreen2024 = () => {
buttonProps={{
title: t('global.Confirm'),
onPress: handleConfirm,
disabled: !privateKey || !!error,
}}
style={styles.screen}
footerBottomOffset={56}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export const ImportSafeAddressScreen2024 = () => {
buttonProps={{
title: t('global.Confirm'),
onPress: handleNext,
disabled: !input || !!error,
}}
style={styles.screen}
footerBottomOffset={56}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ export const ImportSeedPhraseScreen2024 = () => {
buttonProps={{
title: t('global.Confirm'),
onPress: handleConfirm,
disabled: !mnemonics || !!error,
loading: importing,
}}
style={styles.screen}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export const ImportWatchAddressScreen2024 = () => {
buttonProps={{
title: t('global.Confirm'),
onPress: handleDone,
disabled: !input || !!error,
}}
style={styles.screen}
footerBottomOffset={56}
Expand Down

0 comments on commit a3054ef

Please sign in to comment.