Skip to content

Commit

Permalink
Merge pull request #4642 from EdgeApp/william/ui4-modal
Browse files Browse the repository at this point in the history
Add a UI4 modal
  • Loading branch information
paullinator authored Jan 12, 2024
2 parents 729d2f9 + 91f1a7a commit 95d17ec
Show file tree
Hide file tree
Showing 41 changed files with 3,317 additions and 2,465 deletions.
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

0 comments on commit 95d17ec

Please sign in to comment.