Skip to content

Commit

Permalink
fix: not navigating to the scan-QR (#88)
Browse files Browse the repository at this point in the history
* fix: not navigating to the scan-QR screen from the addressbook screen and settings screen

* update imports in the test files

* update autofocus amount input in send screen
  • Loading branch information
KKA11010 committed Jun 23, 2023
1 parent 38311f6 commit 33bb40f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/screens/Addressbook/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function AddressbookPage({ navigation, route }: TAddressBookPageP
const { color } = useContext(ThemeContext)
return (
<View style={[styles.container, { backgroundColor: color.BACKGROUND }]}>
<TopNav screenName='Address book' />
<TopNav screenName='Address book' nav={{ navigation, route }} />
<AddressBook nav={{ navigation, route }} />
<BottomNav navigation={navigation} route={route} />
</View>
Expand Down
2 changes: 1 addition & 1 deletion src/components/screens/Lightning/pageContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default function LNPageContent({
placeholder='0'
placeholderTextColor={hi[highlight]}
style={[styles.amount, { color: hi[highlight] }]}
autoFocus={isSendingToken}
autoFocus
caretHidden
onChangeText={amount => setAmount(cleanUpNumericStr(amount))}
value={amount}
Expand Down
2 changes: 1 addition & 1 deletion src/components/screens/Settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function Settings({ navigation, route }: TSettingsPageProps) {
}
return (
<View style={[styles.container, { backgroundColor: color.BACKGROUND }]}>
<TopNav screenName='Settings' />
<TopNav screenName='Settings' nav={{ navigation, route }} />
<View style={[globals(color).wrapContainer, styles.wrap]}>
<SettingsMenuItem
txt='Security'
Expand Down
6 changes: 3 additions & 3 deletions test/components/AddressBook.test.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
import AddressBook from '@comps/screens/Addressbook/Book'
import AddressbookModal from '@comps/screens/Addressbook/modal'
import { l } from '@src/logger'
import { l } from '@log'
import AddressBook from '@screens/Addressbook/Book'
import AddressbookModal from '@screens/Addressbook/modal'
import { act, fireEvent, render, screen } from '@testing-library/react-native'

jest.useFakeTimers()
Expand Down
2 changes: 1 addition & 1 deletion test/components/Balance.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
import Balance from '@comps/Balance'
import { initDb } from '@src/storage/db'
import { initDb } from '@db'
import { fireEvent, render, screen } from '@testing-library/react-native'

describe('Basic test of the Txt.tsx component', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/components/CoinSelectionModal.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
import { l } from '@log'
import { CoinSelectionModal } from '@screens/Lightning/modal'
import { l } from '@src/logger'
import { render, screen } from '@testing-library/react-native'

describe('Basic styling test of the CoinSelectionModal component', () => {
Expand Down

0 comments on commit 33bb40f

Please sign in to comment.