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

Add a UI4 modal #4642

Merged
merged 3 commits into from
Jan 12, 2024
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
8 changes: 2 additions & 6 deletions jestSetup.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import './node_modules/react-native-gesture-handler/jestSetup.js'

import { jest } from '@jest/globals'
import mockSafeAreaContext from 'react-native-safe-area-context/jest/mock'

Expand Down Expand Up @@ -46,12 +48,6 @@ jest.mock('@react-navigation/elements', () => ({
getDefaultHeaderHeight: () => 44
}))

jest.mock('react-native-gesture-handler', () => ({
PanGestureHandler({ children }) {
return children
}
}))

jest.mock('rn-qr-generator', () => ({
detect() {
return Promise.resolve()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`AccelerateTxModalComponent should render with loading props 1`] = `
<ThemedModal
<ModalUi4
bridge={
{
"on": [Function],
Expand Down Expand Up @@ -51,5 +51,5 @@ exports[`AccelerateTxModalComponent should render with loading props 1`] = `
showSpinner={false}
/>
</View>
</ThemedModal>
</ModalUi4>
`;
4 changes: 2 additions & 2 deletions src/__tests__/modals/__snapshots__/AddressModal.test.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`AddressModalComponent should render with loaded props 1`] = `
<ThemedModal
<ModalUi4
bridge={
{
"on": [Function],
Expand Down Expand Up @@ -65,5 +65,5 @@ exports[`AddressModalComponent should render with loaded props 1`] = `
type="primary"
/>
</View>
</ThemedModal>
</ModalUi4>
`;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`AutoLogoutModal should render with loading props 1`] = `
<ThemedModal
<ModalUi4
bridge={
{
"on": [Function],
Expand Down Expand Up @@ -374,5 +374,5 @@ exports[`AutoLogoutModal should render with loading props 1`] = `
}
}
/>
</ThemedModal>
</ModalUi4>
`;
Loading
Loading