Skip to content

Commit

Permalink
disable auto-capitalize in mint url input and invoice/lnurl input
Browse files Browse the repository at this point in the history
  • Loading branch information
KKA11010 committed Mar 29, 2024
1 parent f4267ff commit 4b6c1ee
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
26 changes: 17 additions & 9 deletions src/screens/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,15 +307,15 @@ export default function Dashboard({ navigation, route }: TDashboardPageProps) {
txt={t('send', { ns: NS.wallet })}
color={hi[highlight]}
onPress={() => {
setModal(prev => ({ ...prev, sendOpts: true }))
// navigation.navigate('Recovering', {
// from: 500,
// to: 550,
// mintUrl: 'https://testnut.cashu.space',
// keysetId: 'asfdafh8u2h3',
// mnemonic: '',
// comingFromOnboarding: false,
// })
// setModal(prev => ({ ...prev, sendOpts: true }))
navigation.navigate('Recovering', {
from: 500,
to: 550,
mintUrl: 'https://testnut.cashu.space',
keysetId: 'asfdafh8u2h3',
mnemonic: '',
comingFromOnboarding: false,
})
}}
/>
:
Expand All @@ -325,6 +325,14 @@ export default function Dashboard({ navigation, route }: TDashboardPageProps) {
color={hi[highlight]}
onPress={() => {
navigation.navigate('mints')
// navigation.navigate('Recovering', {
// from: 500,
// to: 550,
// mintUrl: 'https://testnut.cashu.space',
// keysetId: 'asfdafh8u2h3',
// mnemonic: '',
// comingFromOnboarding: false,
// })
}}
/>
}
Expand Down
1 change: 1 addition & 0 deletions src/screens/Mints/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ export default function Mints({ navigation }: TMintsPageProps) {
value={input}
onChangeText={setInput}
onSubmitEditing={() => void handleMintInput()}
autoCapitalize='none'
style={[{ paddingRight: s(55) }]}
/>
{/* scan icon */}
Expand Down
10 changes: 2 additions & 8 deletions src/screens/Payment/Send/Inputfield.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,17 +172,11 @@ export default function InputfieldScreen({ navigation, route }: TMeltInputfieldP
keyboardType='email-address'
placeholder={t('invoiceOrLnurl')}
value={input}
onChangeText={text => {
setInput(text)
/* Handle when the continue button is pressed
if (isLnInvoice(text)) {
void handleInvoicePaste(text)
}
*/
}}
onChangeText={text => setInput(text)}
onSubmitEditing={() => void handleBtnPress()}
autoFocus
ms={200}
autoCapitalize='none'
style={{ paddingRight: s(90) }}
/>
{/* Paste / Clear Input */}
Expand Down

0 comments on commit 4b6c1ee

Please sign in to comment.