From 6ed9bcbdca840da6265d2a489cc2450e13fa9c40 Mon Sep 17 00:00:00 2001 From: Maciej Dobosz Date: Tue, 5 Dec 2023 17:01:08 +0100 Subject: [PATCH 01/53] Add border radius 3 style --- src/styles/utilities/borders.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/styles/utilities/borders.ts b/src/styles/utilities/borders.ts index 5d5110f858e4..9cd02dcd22ae 100644 --- a/src/styles/utilities/borders.ts +++ b/src/styles/utilities/borders.ts @@ -12,6 +12,10 @@ export default { borderRadius: 8, }, + br3: { + borderRadius: 12, + }, + br4: { borderRadius: 16, }, From 4346c84849c43a6deef3c5a33781ecc284ab0f40 Mon Sep 17 00:00:00 2001 From: Maciej Dobosz Date: Tue, 5 Dec 2023 17:01:40 +0100 Subject: [PATCH 02/53] Create WorkspacesListRow --- src/pages/workspace/WorkspacesListPage.js | 22 ++++++---------------- src/pages/workspace/WorkspacesListRow.tsx | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+), 16 deletions(-) create mode 100755 src/pages/workspace/WorkspacesListRow.tsx diff --git a/src/pages/workspace/WorkspacesListPage.js b/src/pages/workspace/WorkspacesListPage.js index cf258b462285..c031e061fbe2 100755 --- a/src/pages/workspace/WorkspacesListPage.js +++ b/src/pages/workspace/WorkspacesListPage.js @@ -1,5 +1,6 @@ import PropTypes from 'prop-types'; import React, {useMemo} from 'react'; +import {View} from 'react-native'; import {withOnyx} from 'react-native-onyx'; import _ from 'underscore'; import Button from '@components/Button'; @@ -28,6 +29,7 @@ import ONYXKEYS from '@src/ONYXKEYS'; import ROUTES from '@src/ROUTES'; import SCREENS from '@src/SCREENS'; import withPolicyAndFullscreenLoading from './withPolicyAndFullscreenLoading'; +import WorkspacesListRow from './WorkspacesListRow'; const propTypes = { /** The list of this user's policies */ @@ -182,20 +184,7 @@ function WorkspacesListPage({policies, allPolicyMembers, reimbursementAccount, u }, [reimbursementAccount.errors, policies, isOffline, theme.textLight, allPolicyMembers]); return ( - Navigation.goBack(ROUTES.SETTINGS)} - title={translate('common.workspaces')} - footer={ -