From efccd87d9d3cac079c20bbd7c43e69944d62aef7 Mon Sep 17 00:00:00 2001 From: Keng Ye Date: Mon, 9 Aug 2021 14:17:07 +0800 Subject: [PATCH 1/2] fix(ui): add bg color to SectionTitle Fix: #497 --- app/components/SectionTitle.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/SectionTitle.tsx b/app/components/SectionTitle.tsx index 3a908d49c4..d82b6436c1 100644 --- a/app/components/SectionTitle.tsx +++ b/app/components/SectionTitle.tsx @@ -6,7 +6,7 @@ export function SectionTitle ({ text, testID }: { text: string, testID: string } return ( { text From 3c9674067f14eafd128b76e2a676bb6c2c1e8370 Mon Sep 17 00:00:00 2001 From: Keng Ye Date: Mon, 9 Aug 2021 14:18:27 +0800 Subject: [PATCH 2/2] test: update unit test snap shot --- .../__snapshots__/BalancesScreen.test.tsx.snap | 4 ++-- .../__snapshots__/TokenDetailScreen.test.tsx.snap | 12 ++++++------ .../screens/__snapshots__/AboutScreen.test.tsx.snap | 4 ++-- .../__snapshots__/CommunityScreen.test.tsx.snap | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/app/screens/AppNavigator/screens/Balances/__snapshots__/BalancesScreen.test.tsx.snap b/app/screens/AppNavigator/screens/Balances/__snapshots__/BalancesScreen.test.tsx.snap index 859c32eff1..f0bd66f85b 100644 --- a/app/screens/AppNavigator/screens/Balances/__snapshots__/BalancesScreen.test.tsx.snap +++ b/app/screens/AppNavigator/screens/Balances/__snapshots__/BalancesScreen.test.tsx.snap @@ -92,16 +92,16 @@ exports[`balances page should match snapshot 1`] = ` }, Array [ Object { + "backgroundColor": "rgba(243, 244, 246, 1)", "color": "rgba(107, 114, 128, 1)", "fontFamily": "MediumFont", "fontSize": 12, "fontWeight": "500", "lineHeight": 16, - "marginTop": 8, "paddingBottom": 16, "paddingLeft": 16, "paddingRight": 16, - "paddingTop": 16, + "paddingTop": 24, }, ], ] diff --git a/app/screens/AppNavigator/screens/Balances/screens/__snapshots__/TokenDetailScreen.test.tsx.snap b/app/screens/AppNavigator/screens/Balances/screens/__snapshots__/TokenDetailScreen.test.tsx.snap index cbf97374ae..aced66d087 100644 --- a/app/screens/AppNavigator/screens/Balances/screens/__snapshots__/TokenDetailScreen.test.tsx.snap +++ b/app/screens/AppNavigator/screens/Balances/screens/__snapshots__/TokenDetailScreen.test.tsx.snap @@ -81,16 +81,16 @@ exports[`token detail screen should accept DST 1`] = ` }, Array [ Object { + "backgroundColor": "rgba(243, 244, 246, 1)", "color": "rgba(107, 114, 128, 1)", "fontFamily": "MediumFont", "fontSize": 12, "fontWeight": "500", "lineHeight": 16, - "marginTop": 8, "paddingBottom": 16, "paddingLeft": 16, "paddingRight": 16, - "paddingTop": 16, + "paddingTop": 24, }, ], ] @@ -362,16 +362,16 @@ exports[`token detail screen should accept Token DFI 1`] = ` }, Array [ Object { + "backgroundColor": "rgba(243, 244, 246, 1)", "color": "rgba(107, 114, 128, 1)", "fontFamily": "MediumFont", "fontSize": 12, "fontWeight": "500", "lineHeight": 16, - "marginTop": 8, "paddingBottom": 16, "paddingLeft": 16, "paddingRight": 16, - "paddingTop": 16, + "paddingTop": 24, }, ], ] @@ -554,16 +554,16 @@ exports[`token detail screen should accept UTXO DFI 1`] = ` }, Array [ Object { + "backgroundColor": "rgba(243, 244, 246, 1)", "color": "rgba(107, 114, 128, 1)", "fontFamily": "MediumFont", "fontSize": 12, "fontWeight": "500", "lineHeight": 16, - "marginTop": 8, "paddingBottom": 16, "paddingLeft": 16, "paddingRight": 16, - "paddingTop": 16, + "paddingTop": 24, }, ], ] diff --git a/app/screens/AppNavigator/screens/Settings/screens/__snapshots__/AboutScreen.test.tsx.snap b/app/screens/AppNavigator/screens/Settings/screens/__snapshots__/AboutScreen.test.tsx.snap index d66017e8ae..73d5ca9f49 100644 --- a/app/screens/AppNavigator/screens/Settings/screens/__snapshots__/AboutScreen.test.tsx.snap +++ b/app/screens/AppNavigator/screens/Settings/screens/__snapshots__/AboutScreen.test.tsx.snap @@ -148,16 +148,16 @@ exports[` should match snapshot 1`] = ` }, Array [ Object { + "backgroundColor": "rgba(243, 244, 246, 1)", "color": "rgba(107, 114, 128, 1)", "fontFamily": "MediumFont", "fontSize": 12, "fontWeight": "500", "lineHeight": 16, - "marginTop": 8, "paddingBottom": 16, "paddingLeft": 16, "paddingRight": 16, - "paddingTop": 16, + "paddingTop": 24, }, ], ] diff --git a/app/screens/AppNavigator/screens/Settings/screens/__snapshots__/CommunityScreen.test.tsx.snap b/app/screens/AppNavigator/screens/Settings/screens/__snapshots__/CommunityScreen.test.tsx.snap index ffa31fb52b..f893ed5707 100644 --- a/app/screens/AppNavigator/screens/Settings/screens/__snapshots__/CommunityScreen.test.tsx.snap +++ b/app/screens/AppNavigator/screens/Settings/screens/__snapshots__/CommunityScreen.test.tsx.snap @@ -138,16 +138,16 @@ exports[` should match snapshot 1`] = ` }, Array [ Object { + "backgroundColor": "rgba(243, 244, 246, 1)", "color": "rgba(107, 114, 128, 1)", "fontFamily": "MediumFont", "fontSize": 12, "fontWeight": "500", "lineHeight": 16, - "marginTop": 8, "paddingBottom": 16, "paddingLeft": 16, "paddingRight": 16, - "paddingTop": 16, + "paddingTop": 24, }, ], ]