@@ -70,7 +70,6 @@ function CategorySettingsPage({
7070
7171 const [ isCannotDeleteOrDisableLastCategoryModalVisible , setIsCannotDeleteOrDisableLastCategoryModalVisible ] = useState ( false ) ;
7272 const shouldPreventDisableOrDelete = isDisablingOrDeletingLastEnabledCategory ( policy , policyData . categories , [ policyCategory ] ) ;
73- const areCommentsRequired = policyCategory ?. areCommentsRequired ?? false ;
7473 const isQuickSettingsFlow = name === SCREENS . SETTINGS_CATEGORIES . SETTINGS_CATEGORY_SETTINGS ;
7574 const {
7675 taskReport : setupCategoryTaskReport ,
@@ -354,20 +353,6 @@ function CategorySettingsPage({
354353 shouldShowRightIcon
355354 />
356355 </ OfflineWithFeedback >
357-
358- { areCommentsRequired && (
359- < OfflineWithFeedback pendingAction = { policyCategory . pendingFields ?. commentHint } >
360- < MenuItemWithTopDescription
361- title = { policyCategory ?. commentHint }
362- description = { translate ( 'workspace.rules.categoryRules.descriptionHint' ) }
363- onPress = { ( ) => {
364- Navigation . navigate ( ROUTES . WORKSPACE_CATEGORY_DESCRIPTION_HINT . getRoute ( policyID , policyCategory . name ) ) ;
365- } }
366- shouldShowRightIcon
367- />
368- </ OfflineWithFeedback >
369- ) }
370-
371356 { ! isThereAnyAccountingConnection && (
372357 < MenuItem
373358 icon = { expensifyIcons . Trashcan }
@@ -453,6 +438,16 @@ function CategorySettingsPage({
453438 shouldShowRightIcon
454439 />
455440 </ OfflineWithFeedback >
441+ < OfflineWithFeedback pendingAction = { policyCategory . pendingFields ?. commentHint } >
442+ < MenuItemWithTopDescription
443+ title = { policyCategory ?. commentHint }
444+ description = { translate ( 'workspace.rules.categoryRules.descriptionHint' ) }
445+ onPress = { ( ) => {
446+ Navigation . navigate ( ROUTES . WORKSPACE_CATEGORY_DESCRIPTION_HINT . getRoute ( policyID , policyCategory . name ) ) ;
447+ } }
448+ shouldShowRightIcon
449+ />
450+ </ OfflineWithFeedback >
456451 </ >
457452 ) }
458453 </ ScrollView >
0 commit comments