From 192073308e2f35987cf882918532551001f04326 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 May 2022 13:14:34 +0000 Subject: [PATCH 1/3] chore(deps): bump react-native-paper from 4.11.2 to 4.12.1 Bumps [react-native-paper](https://github.com/callstack/react-native-paper) from 4.11.2 to 4.12.1. - [Release notes](https://github.com/callstack/react-native-paper/releases) - [Changelog](https://github.com/callstack/react-native-paper/blob/main/.release-it.json) - [Commits](https://github.com/callstack/react-native-paper/compare/v4.11.2...v4.12.1) --- updated-dependencies: - dependency-name: react-native-paper dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index d37e4502..3707d257 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "react-native-countdown-circle-timer": "^3.0.9", "react-native-gesture-handler": "~2.4.2", "react-native-get-random-values": "~1.8.0", - "react-native-paper": "4.11.2", + "react-native-paper": "4.12.1", "react-native-reanimated": "~2.3.1", "react-native-root-toast": "^3.4.0", "react-native-safe-area-context": "3.3.2", diff --git a/yarn.lock b/yarn.lock index 744e37a6..7742d7ab 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8616,10 +8616,10 @@ react-native-iphone-x-helper@^1.3.1: resolved "https://registry.yarnpkg.com/react-native-iphone-x-helper/-/react-native-iphone-x-helper-1.3.1.tgz#20c603e9a0e765fd6f97396638bdeb0e5a60b010" integrity sha512-HOf0jzRnq2/aFUcdCJ9w9JGzN3gdEg0zFE4FyYlp4jtidqU03D5X7ZegGKfT1EWteR0gPBGp9ye5T5FvSWi9Yg== -react-native-paper@4.11.2: - version "4.11.2" - resolved "https://registry.yarnpkg.com/react-native-paper/-/react-native-paper-4.11.2.tgz#4ae73282da9be3bf20760c609d3273643d1dd4a9" - integrity sha512-r+M5unY9Avez4we/RijVh4iy8gqxK93R4840aZmbakOJLIuxjfNh3B6SuoxBEbR6diuPRbKVeWHKju4mhltxWw== +react-native-paper@4.12.1: + version "4.12.1" + resolved "https://registry.yarnpkg.com/react-native-paper/-/react-native-paper-4.12.1.tgz#9c0c6236f40ab0bf02dd2d42e0264125d2f9d48a" + integrity sha512-xvAkwtRatsDcB/eSBUwoThBAT5Yy32SgKwrfHRUXi/9s5lR2SEuPZwmsZyAaq+bsxtAH1CaIT4CDeVLSaArzyg== dependencies: "@callstack/react-theme-provider" "^3.0.7" color "^3.1.2" From 7aa95135d0b0852f759ca45a9e9c231c61df0d55 Mon Sep 17 00:00:00 2001 From: Simone Busoli Date: Mon, 30 May 2022 16:32:35 +0200 Subject: [PATCH 2/3] fix: props and snapshot --- src/components/HomeHeaderRight.tsx | 3 +-- src/screens/HomeScreen.test.tsx.snap.android | 28 ++++++++++++++++++++ src/screens/HomeScreen.test.tsx.snap.ios | 28 ++++++++++++++++++++ src/screens/TypeScreen.test.tsx.snap.android | 19 +++++++++++++ src/screens/TypeScreen.test.tsx.snap.ios | 19 +++++++++++++ 5 files changed, 95 insertions(+), 2 deletions(-) diff --git a/src/components/HomeHeaderRight.tsx b/src/components/HomeHeaderRight.tsx index 6724a54e..5b216667 100644 --- a/src/components/HomeHeaderRight.tsx +++ b/src/components/HomeHeaderRight.tsx @@ -26,8 +26,7 @@ export default function HomeHeaderRight() { top: 5, right: 5, }} - onPressIn={() => undefined} - onPressOut={() => undefined} + onPress={() => undefined} > {pendingNotifications.length} diff --git a/src/screens/HomeScreen.test.tsx.snap.android b/src/screens/HomeScreen.test.tsx.snap.android index 2cf698e0..cad6c482 100644 --- a/src/screens/HomeScreen.test.tsx.snap.android +++ b/src/screens/HomeScreen.test.tsx.snap.android @@ -679,6 +679,13 @@ exports[`HomeScreen renders secret cards when available 1`] = ` "borderWidth": 0, "elevation": 0, "minWidth": 64, + "shadowColor": "#000000", + "shadowOffset": Object { + "height": 0, + "width": 0, + }, + "shadowOpacity": 0, + "shadowRadius": 0, } } > @@ -927,6 +934,13 @@ exports[`HomeScreen renders secret cards when available 1`] = ` "borderWidth": 0, "elevation": 0, "minWidth": "auto", + "shadowColor": "#000000", + "shadowOffset": Object { + "height": 0, + "width": 0, + }, + "shadowOpacity": 0, + "shadowRadius": 0, } } > @@ -1803,6 +1817,13 @@ exports[`HomeScreen renders secret cards when available 1`] = ` "borderWidth": 0, "elevation": 0, "minWidth": 64, + "shadowColor": "#000000", + "shadowOffset": Object { + "height": 0, + "width": 0, + }, + "shadowOpacity": 0, + "shadowRadius": 0, } } > @@ -2051,6 +2072,13 @@ exports[`HomeScreen renders secret cards when available 1`] = ` "borderWidth": 0, "elevation": 0, "minWidth": "auto", + "shadowColor": "#000000", + "shadowOffset": Object { + "height": 0, + "width": 0, + }, + "shadowOpacity": 0, + "shadowRadius": 0, } } > diff --git a/src/screens/HomeScreen.test.tsx.snap.ios b/src/screens/HomeScreen.test.tsx.snap.ios index b9356950..b932cbe7 100644 --- a/src/screens/HomeScreen.test.tsx.snap.ios +++ b/src/screens/HomeScreen.test.tsx.snap.ios @@ -679,6 +679,13 @@ exports[`HomeScreen renders secret cards when available 1`] = ` "borderWidth": 0, "elevation": 0, "minWidth": 64, + "shadowColor": "#000000", + "shadowOffset": Object { + "height": 0, + "width": 0, + }, + "shadowOpacity": 0, + "shadowRadius": 0, } } > @@ -927,6 +934,13 @@ exports[`HomeScreen renders secret cards when available 1`] = ` "borderWidth": 0, "elevation": 0, "minWidth": "auto", + "shadowColor": "#000000", + "shadowOffset": Object { + "height": 0, + "width": 0, + }, + "shadowOpacity": 0, + "shadowRadius": 0, } } > @@ -1803,6 +1817,13 @@ exports[`HomeScreen renders secret cards when available 1`] = ` "borderWidth": 0, "elevation": 0, "minWidth": 64, + "shadowColor": "#000000", + "shadowOffset": Object { + "height": 0, + "width": 0, + }, + "shadowOpacity": 0, + "shadowRadius": 0, } } > @@ -2051,6 +2072,13 @@ exports[`HomeScreen renders secret cards when available 1`] = ` "borderWidth": 0, "elevation": 0, "minWidth": "auto", + "shadowColor": "#000000", + "shadowOffset": Object { + "height": 0, + "width": 0, + }, + "shadowOpacity": 0, + "shadowRadius": 0, } } > diff --git a/src/screens/TypeScreen.test.tsx.snap.android b/src/screens/TypeScreen.test.tsx.snap.android index 7ef4da4c..f22a19c3 100644 --- a/src/screens/TypeScreen.test.tsx.snap.android +++ b/src/screens/TypeScreen.test.tsx.snap.android @@ -110,6 +110,7 @@ exports[`TypeScreen should match snapshot 1`] = ` } /> diff --git a/src/screens/TypeScreen.test.tsx.snap.ios b/src/screens/TypeScreen.test.tsx.snap.ios index 0af73b8e..025e773b 100644 --- a/src/screens/TypeScreen.test.tsx.snap.ios +++ b/src/screens/TypeScreen.test.tsx.snap.ios @@ -110,6 +110,7 @@ exports[`TypeScreen should match snapshot 1`] = ` } /> From d063935833283d84242da0068dbfb5b726774225 Mon Sep 17 00:00:00 2001 From: Simone Busoli Date: Mon, 30 May 2022 16:42:51 +0200 Subject: [PATCH 3/3] chore: typings and snapshots --- src/components/Typography.tsx | 2 -- src/screens/HomeScreen.test.tsx.snap.android | 28 ------------------- src/screens/HomeScreen.test.tsx.snap.ios | 28 ------------------- .../SettingsScreen.test.tsx.snap.android | 4 --- src/screens/SettingsScreen.test.tsx.snap.ios | 4 --- .../TokensListScreen.test.tsx.snap.android | 4 --- .../TokensListScreen.test.tsx.snap.ios | 4 --- src/screens/TokensListScreen.tsx | 12 ++------ 8 files changed, 2 insertions(+), 84 deletions(-) diff --git a/src/components/Typography.tsx b/src/components/Typography.tsx index fd3e268a..fec49c8a 100644 --- a/src/components/Typography.tsx +++ b/src/components/Typography.tsx @@ -23,8 +23,6 @@ export const Typography: React.FC = ({ }) => { return ( { {tokensCount > 1 && ( <> - + {tokensCount} {' '} - + {tokensCount === 1 ? 'TOKEN' : 'TOKENS'}