diff --git a/src/pages/workspace/WorkspaceProfilePage.tsx b/src/pages/workspace/WorkspaceProfilePage.tsx
index d8b407d5cee9..662335d0b358 100644
--- a/src/pages/workspace/WorkspaceProfilePage.tsx
+++ b/src/pages/workspace/WorkspaceProfilePage.tsx
@@ -12,7 +12,6 @@ import * as Expensicons from '@components/Icon/Expensicons';
import * as Illustrations from '@components/Icon/Illustrations';
import MenuItemWithTopDescription from '@components/MenuItemWithTopDescription';
import OfflineWithFeedback from '@components/OfflineWithFeedback';
-import ScrollView from '@components/ScrollView';
import Section from '@components/Section';
import Text from '@components/Text';
import useActiveWorkspace from '@hooks/useActiveWorkspace';
@@ -119,133 +118,131 @@ function WorkspaceProfilePage({policy, currencyList = {}, route}: WorkSpaceProfi
icon={Illustrations.House}
>
{(hasVBA?: boolean) => (
-
-
-
-
- Navigation.navigate(ROUTES.WORKSPACE_AVATAR.getRoute(policy?.id ?? ''))}
- source={policy?.avatar ?? ''}
- size={CONST.AVATAR_SIZE.XLARGE}
- avatarStyle={styles.avatarXLarge}
- enablePreview
- DefaultAvatar={DefaultAvatar}
- type={CONST.ICON_TYPE_WORKSPACE}
- fallbackIcon={Expensicons.FallbackWorkspaceAvatar}
- style={[
- policy?.errorFields?.avatar ?? isSmallScreenWidth ? styles.mb1 : styles.mb3,
- isSmallScreenWidth ? styles.mtn17 : styles.mtn20,
- styles.alignItemsStart,
- styles.sectionMenuItemTopDescription,
- ]}
- editIconStyle={styles.smallEditIconWorkspace}
- isUsingDefaultAvatar={!policy?.avatar ?? null}
- onImageSelected={(file) => Policy.updateWorkspaceAvatar(policy?.id ?? '', file as File)}
- onImageRemoved={() => Policy.deleteWorkspaceAvatar(policy?.id ?? '')}
- editorMaskImage={Expensicons.ImageCropSquareMask}
- pendingAction={policy?.pendingFields?.avatar}
- errors={policy?.errorFields?.avatar}
- onErrorClose={() => Policy.clearAvatarErrors(policy?.id ?? '')}
- previewSource={UserUtils.getFullSizeAvatar(policy?.avatar ?? '')}
- headerTitle={translate('workspace.common.workspaceAvatar')}
- originalFileName={policy?.originalFileName}
+
+
+
+ Navigation.navigate(ROUTES.WORKSPACE_AVATAR.getRoute(policy?.id ?? ''))}
+ source={policy?.avatar ?? ''}
+ size={CONST.AVATAR_SIZE.XLARGE}
+ avatarStyle={styles.avatarXLarge}
+ enablePreview
+ DefaultAvatar={DefaultAvatar}
+ type={CONST.ICON_TYPE_WORKSPACE}
+ fallbackIcon={Expensicons.FallbackWorkspaceAvatar}
+ style={[
+ policy?.errorFields?.avatar ?? isSmallScreenWidth ? styles.mb1 : styles.mb3,
+ isSmallScreenWidth ? styles.mtn17 : styles.mtn20,
+ styles.alignItemsStart,
+ styles.sectionMenuItemTopDescription,
+ ]}
+ editIconStyle={styles.smallEditIconWorkspace}
+ isUsingDefaultAvatar={!policy?.avatar ?? null}
+ onImageSelected={(file) => Policy.updateWorkspaceAvatar(policy?.id ?? '', file as File)}
+ onImageRemoved={() => Policy.deleteWorkspaceAvatar(policy?.id ?? '')}
+ editorMaskImage={Expensicons.ImageCropSquareMask}
+ pendingAction={policy?.pendingFields?.avatar}
+ errors={policy?.errorFields?.avatar}
+ onErrorClose={() => Policy.clearAvatarErrors(policy?.id ?? '')}
+ previewSource={UserUtils.getFullSizeAvatar(policy?.avatar ?? '')}
+ headerTitle={translate('workspace.common.workspaceAvatar')}
+ originalFileName={policy?.originalFileName}
+ disabled={readOnly}
+ disabledStyle={styles.cursorDefault}
+ errorRowStyles={styles.mt3}
+ />
+
+
-
+
+ {(!StringUtils.isEmptyString(policy?.description ?? '') || !readOnly) && (
+ Policy.clearPolicyErrorField(policy?.id ?? '', CONST.POLICY.COLLECTION_KEYS.DESCRIPTION)}
+ >
- {(!StringUtils.isEmptyString(policy?.description ?? '') || !readOnly) && (
- Policy.clearPolicyErrorField(policy?.id ?? '', CONST.POLICY.COLLECTION_KEYS.DESCRIPTION)}
- >
-
-
- )}
- Policy.clearPolicyErrorField(policy?.id ?? '', CONST.POLICY.COLLECTION_KEYS.GENERAL_SETTINGS)}
- errorRowStyles={[styles.mt2]}
- >
-
-
-
- {hasVBA ? translate('workspace.editor.currencyInputDisabledText') : translate('workspace.editor.currencyInputHelpText')}
-
-
-
- {!readOnly && (
-
-
-
- )}
-
- setIsDeleteModalOpen(false)}
- prompt={translate('workspace.common.deleteConfirmation')}
- confirmText={translate('common.delete')}
- cancelText={translate('common.cancel')}
- danger
- />
-
-
+ )}
+ Policy.clearPolicyErrorField(policy?.id ?? '', CONST.POLICY.COLLECTION_KEYS.GENERAL_SETTINGS)}
+ errorRowStyles={[styles.mt2]}
+ >
+
+
+
+ {hasVBA ? translate('workspace.editor.currencyInputDisabledText') : translate('workspace.editor.currencyInputHelpText')}
+
+
+
+ {!readOnly && (
+
+
+
+ )}
+
+ setIsDeleteModalOpen(false)}
+ prompt={translate('workspace.common.deleteConfirmation')}
+ confirmText={translate('common.delete')}
+ cancelText={translate('common.cancel')}
+ danger
+ />
+
)}
);
diff --git a/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx b/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx
index 5bcb631c21b0..db59980a2cf4 100644
--- a/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx
+++ b/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx
@@ -1,6 +1,6 @@
import type {StackScreenProps} from '@react-navigation/stack';
import React, {useCallback, useEffect, useMemo, useState} from 'react';
-import {FlatList, View} from 'react-native';
+import {View} from 'react-native';
import type {OnyxEntry} from 'react-native-onyx';
import {withOnyx} from 'react-native-onyx';
import ConfirmModal from '@components/ConfirmModal';
@@ -243,8 +243,11 @@ function WorkspaceWorkflowsPage({policy, betas, route, reimbursementAccount, ses
session?.accountID,
]);
- const renderOptionItem = ({item}: {item: ToggleSettingOptionRowProps}) => (
-
+ const renderOptionItem = (item: ToggleSettingOptionRowProps, index: number) => (
+
{translate('workflowsPage.workflowDescription')}
- item.title}
- />
+ {optionItems.map(renderOptionItem)}