From 96c46ac20f062aaf814f02184ce8c05ffc860a15 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Thu, 5 Nov 2020 22:13:49 -0500 Subject: [TMA-344] Tabs bar margin, Social Taggs margin (#108) * fixed margin for smaller screen * fixed header avatar * cleaned up code, improved logic * yarn lint * dynamically calculate avatar and header * changed back tint color and use 1% for tabs bar margin * last edit to avatar size Co-authored-by: Husam Salhab <47015061+hsalhab@users.noreply.github.com> --- src/routes/onboarding/OnboardingStack.tsx | 7 ++++++- src/routes/profile/ProfileStack.tsx | 2 +- src/routes/tabs/NavigationBar.tsx | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'src/routes') diff --git a/src/routes/onboarding/OnboardingStack.tsx b/src/routes/onboarding/OnboardingStack.tsx index 6bc1ed9d..d40e0728 100644 --- a/src/routes/onboarding/OnboardingStack.tsx +++ b/src/routes/onboarding/OnboardingStack.tsx @@ -6,7 +6,12 @@ export type OnboardingStackParams = { InvitationCodeVerification: undefined; RegistrationOne: undefined; RegistrationTwo: {phone: string}; - RegistrationThree: {firstName: string; lastName: string; phone: string; email: string}; + RegistrationThree: { + firstName: string; + lastName: string; + phone: string; + email: string; + }; Checkpoint: {username: string; userId: string}; Verification: {phone: string}; ProfileOnboarding: {username: string; userId: string}; diff --git a/src/routes/profile/ProfileStack.tsx b/src/routes/profile/ProfileStack.tsx index d85f003e..b535d90d 100644 --- a/src/routes/profile/ProfileStack.tsx +++ b/src/routes/profile/ProfileStack.tsx @@ -27,7 +27,7 @@ export type ProfileStackParams = { isProfileView: boolean; }; FollowersListScreen: { - isProfileView: boolean, + isProfileView: boolean; isFollowers: boolean; }; }; diff --git a/src/routes/tabs/NavigationBar.tsx b/src/routes/tabs/NavigationBar.tsx index e0341c40..21a1f7d2 100644 --- a/src/routes/tabs/NavigationBar.tsx +++ b/src/routes/tabs/NavigationBar.tsx @@ -53,7 +53,7 @@ const NavigationBar: React.FC = () => { borderTopWidth: 0, left: 0, right: 0, - bottom: 0, + bottom: '1%', }, }}> -- cgit v1.2.3-70-g09d2