Skip to content

Commit

Permalink
add insets padding
Browse files Browse the repository at this point in the history
  • Loading branch information
SzymczakJ committed Dec 28, 2023
1 parent 38ee84a commit b28f8a0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/pages/workspace/WorkspacesListPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import IllustratedHeaderPageLayout from '@components/IllustratedHeaderPageLayout
import LottieAnimations from '@components/LottieAnimations';
import OfflineWithFeedback from '@components/OfflineWithFeedback';
import {PressableWithoutFeedback} from '@components/Pressable';
import ScreenWrapper from '@components/ScreenWrapper';
import Text from '@components/Text';
import withCurrentUserPersonalDetails, {withCurrentUserPersonalDetailsDefaultProps, withCurrentUserPersonalDetailsPropTypes} from '@components/withCurrentUserPersonalDetails';
import useLocalize from '@hooks/useLocalize';
Expand Down Expand Up @@ -274,7 +275,7 @@ function WorkspacesListPage({policies, allPolicyMembers, reimbursementAccount, c
illustration={LottieAnimations.WorkspacePlanet}
onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS.ROOT)}
title={translate('common.workspaces')}
style={styles.alignItemsCenter}
style={!isSmallScreenWidth && styles.alignItemsCenter}
shouldUseCentralPaneView
footer={
isSmallScreenWidth && (
Expand All @@ -287,7 +288,7 @@ function WorkspacesListPage({policies, allPolicyMembers, reimbursementAccount, c
)
}
>
<View style={styles.workspaceFeatureList}>
<View style={!isSmallScreenWidth && styles.workspaceFeatureList}>
<FeatureList
menuItems={workspaceFeatures}
headline="workspace.emptyWorkspace.title"
Expand All @@ -309,7 +310,7 @@ function WorkspacesListPage({policies, allPolicyMembers, reimbursementAccount, c
}

return (
<>
<ScreenWrapper shouldEnablePickerAvoiding={false}>
<View style={{flex: 1}}>
<HeaderWithBackButton
title={translate('common.workspaces')}
Expand Down Expand Up @@ -341,7 +342,7 @@ function WorkspacesListPage({policies, allPolicyMembers, reimbursementAccount, c
cancelText={translate('common.cancel')}
danger
/>
</>
</ScreenWrapper>
);
}

Expand Down

0 comments on commit b28f8a0

Please sign in to comment.