Skip to content

Commit

Permalink
Move to style file
Browse files Browse the repository at this point in the history
  • Loading branch information
ulisesmac authored and J-Son89 committed Nov 17, 2023
1 parent c976b18 commit 3072e8c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
(:require [quo.foundations.colors :as colors]
[react-native.safe-area :as safe-area]))

(defn container []
(defn container
[]
{:flex 1
:margin-top (safe-area/get-top)})

Expand Down
2 changes: 1 addition & 1 deletion src/status_im2/contexts/syncing/setup_syncing/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
:background :blur
:on-press #(rf/dispatch [:navigate-back])
:right-side [{:icon-left :i/info
:label "swap button"
:label (i18n/label :t/how-to-pair)
:on-press #(rf/dispatch [:open-modal :how-to-pair])}]}]
[rn/view {:style style/page-container}
[rn/view {:style style/title-container}
Expand Down
10 changes: 3 additions & 7 deletions test/jest/jestSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jest.mock('@react-native-async-storage/async-storage', () => mockAsyncStorage);

jest.mock('react-native-navigation', () => ({
getNavigationConstants: () => ({ constants: [] }),
Navigation: { constants: async () => { } },
Navigation: { constants: async () => {} },
}));

jest.mock('react-native-background-timer', () => ({}));
Expand All @@ -29,7 +29,8 @@ jest.mock('react-native-static-safe-area-insets', () => ({
default: {
safeAreaInsetsTop: 0,
safeAreaInsetsBottom: 0,
}}));
},
}));

jest.mock('react-native-permissions', () => require('react-native-permissions/mock'));

Expand Down Expand Up @@ -69,11 +70,6 @@ jest.mock('@react-native-community/audio-toolkit', () => ({
},
}));

jest.mock("react-native", () => ({
...jest.requireActual("react-native"),
"Keyboard"
}))

jest.mock('i18n-js', () => ({
...jest.requireActual('i18n-js'),
t: (label) => `tx:${label}`,
Expand Down

0 comments on commit 3072e8c

Please sign in to comment.