From 6e3f964b79c49515464260190a0b63d54478b3a1 Mon Sep 17 00:00:00 2001 From: Zhiyuan Zheng Date: Sat, 19 Feb 2022 17:15:44 +0100 Subject: [PATCH] Fix me page padding issue --- src/screens/Tabs/Me/Root.tsx | 2 -- src/screens/Tabs/Me/Root/Logout.tsx | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/screens/Tabs/Me/Root.tsx b/src/screens/Tabs/Me/Root.tsx index f6bfeb49..5da98fe8 100644 --- a/src/screens/Tabs/Me/Root.tsx +++ b/src/screens/Tabs/Me/Root.tsx @@ -11,7 +11,6 @@ import accountInitialState from '@screens/Tabs/Shared/Account/utils/initialState import accountReducer from '@screens/Tabs/Shared/Account/utils/reducer' import { useProfileQuery } from '@utils/queryHooks/profile' import { getInstanceActive } from '@utils/slices/instancesSlice' -import { StyleConstants } from '@utils/styles/constants' import React, { useReducer, useRef } from 'react' import Animated, { useAnimatedScrollHandler, @@ -50,7 +49,6 @@ const TabMeRoot: React.FC = () => { keyboardShouldPersistTaps='handled' onScroll={onScroll} scrollEventThrottle={16} - style={{ marginBottom: StyleConstants.Spacing.L }} > {instanceActive !== -1 ? ( diff --git a/src/screens/Tabs/Me/Root/Logout.tsx b/src/screens/Tabs/Me/Root/Logout.tsx index a59dc0e4..f7b2db67 100644 --- a/src/screens/Tabs/Me/Root/Logout.tsx +++ b/src/screens/Tabs/Me/Root/Logout.tsx @@ -21,7 +21,8 @@ const Logout: React.FC = () => { content={t('me.root.logout.button')} style={{ marginHorizontal: StyleConstants.Spacing.Global.PagePadding * 2, - marginTop: StyleConstants.Spacing.Global.PagePadding + marginTop: StyleConstants.Spacing.Global.PagePadding, + marginBottom: StyleConstants.Spacing.Global.PagePadding * 2 }} destructive onPress={() =>