Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: not navigating to the scan-QR #88

Merged
merged 4 commits into from
Jun 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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