Skip to content

Commit

Permalink
CR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-solecki committed Apr 8, 2024
1 parent e2b98a3 commit 2f70a5d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 31 deletions.
31 changes: 13 additions & 18 deletions src/pages/EditRequestTagPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,19 @@ function EditRequestTagPage({defaultTag, policyID, tagListName, tagListIndex, on
shouldEnableMaxHeight
testID={EditRequestTagPage.displayName}
>
{({insets}) => (
<>
<HeaderWithBackButton
title={tagListName || translate('common.tag')}
onBackButtonPress={Navigation.goBack}
/>
<Text style={[styles.ph5, styles.pv3]}>{translate('iou.tagSelection')}</Text>
<TagPicker
selectedTag={defaultTag}
tagListName={tagListName}
tagListIndex={tagListIndex}
policyID={policyID}
shouldShowDisabledAndSelectedOption
insets={insets}
onSubmit={selectTag}
/>
</>
)}
<HeaderWithBackButton
title={tagListName || translate('common.tag')}
onBackButtonPress={Navigation.goBack}
/>
<Text style={[styles.ph5, styles.pv3]}>{translate('iou.tagSelection')}</Text>
<TagPicker
selectedTag={defaultTag}
tagListName={tagListName}
tagListIndex={tagListIndex}
policyID={policyID}
shouldShowDisabledAndSelectedOption
onSubmit={selectTag}
/>
</ScreenWrapper>
);
}
Expand Down
21 changes: 8 additions & 13 deletions src/pages/iou/request/step/IOURequestStepTag.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,14 @@ function IOURequestStepTag({
testID={IOURequestStepTag.displayName}
shouldShowNotFoundPage={shouldShowNotFoundPage}
>
{({insets}) => (
<>
<Text style={[styles.ph5, styles.pv3]}>{translate('iou.tagSelection')}</Text>
<TagPicker
policyID={report.policyID}
tagListName={policyTagListName}
tagListIndex={tagListIndex}
selectedTag={tag}
insets={insets}
onSubmit={updateTag}
/>
</>
)}
<Text style={[styles.ph5, styles.pv3]}>{translate('iou.tagSelection')}</Text>
<TagPicker
policyID={report.policyID}
tagListName={policyTagListName}
tagListIndex={tagListIndex}
selectedTag={tag}
onSubmit={updateTag}
/>
</StepScreenWrapper>
);
}
Expand Down

0 comments on commit 2f70a5d

Please sign in to comment.