Skip to content

Commit

Permalink
remove restore comments, disable autoCapitalize for seed confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
KKA11010 committed Mar 27, 2024
1 parent a6fffdd commit 80e7824
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
5 changes: 4 additions & 1 deletion src/components/TxtInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ interface ITxtInputProps {
multiline?: boolean
numberOfLines?: number
style?: StyleProp<TextStyle>
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters'
}

export default function TxtInput({
Expand All @@ -31,7 +32,8 @@ export default function TxtInput({
value,
multiline,
numberOfLines,
style
style,
autoCapitalize
}: ITxtInputProps) {
const { color, highlight } = useThemeContext()
const inputRef = createRef<TextInput>()
Expand All @@ -58,6 +60,7 @@ export default function TxtInput({
value={value}
multiline={multiline}
numberOfLines={numberOfLines}
autoCapitalize={autoCapitalize}
style={[globals(color).input, { marginBottom: vs(20) }, style]}
/>
)
Expand Down
14 changes: 1 addition & 13 deletions src/screens/Restore/ConfirmMnemonic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,6 @@ import { useTranslation } from 'react-i18next'
import { KeyboardAvoidingView, type TextInput, View } from 'react-native'
import { ScaledSheet } from 'react-native-size-matters'

/*
manual test cases:
---
[OK] * Start new seed wallet: confirm mnemonic, set pin, add mint, mint, send, receive, melt, restore
[OK] * Start new quick wallet: skip pin, add mint, activate seed, mint, send, receive, restore
[OK] * Start new recovery wallet: paste seed, restore, set pin, send, receive, melt, mint, restore
[OK] * Start new quick wallet, skip pin, skip mint, restore, send, receive, melt, mint, restore
[ ] * ...
[ ] * ...
*/

export default function ConfirmMnemonicScreen({ navigation, route }: IConfirmMnemonicPageProps) {

const { t } = useTranslation([NS.common])
Expand Down Expand Up @@ -103,6 +90,7 @@ export default function ConfirmMnemonicScreen({ navigation, route }: IConfirmMne
placeholder={`Seed (${randomInt + 1}.)`}
onChangeText={text => setInput(text)}
onSubmitEditing={() => void handleConfirm()}
autoCapitalize='none'
autoFocus
ms={200}
/>
Expand Down
4 changes: 0 additions & 4 deletions src/screens/Restore/Recovering.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ import { useTranslation } from 'react-i18next'
import { View } from 'react-native'
import { s, ScaledSheet } from 'react-native-size-matters'

// TODO
// show internet connection status
// show different quotes messages during the process

export default function RecoveringScreen({ navigation, route }: IRecoveringPageProps) {

const { mintUrl, mnemonic, comingFromOnboarding } = route.params
Expand Down

0 comments on commit 80e7824

Please sign in to comment.