Skip to content

Commit

Permalink
Merge pull request Expensify#25512 from daordonez11/fix-request-descr…
Browse files Browse the repository at this point in the history
…iption

fix: Unify iou and task description ux
  • Loading branch information
mountiny authored Sep 18, 2023
2 parents 15dc6f1 + bd6f8f7 commit 90648b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/ReportActionItem/MoneyRequestView.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ function MoneyRequestView({report, parentReport, shouldShowHorizontalRule, trans
style={[StyleUtils.getReportWelcomeBackgroundImageStyle(true)]}
/>
</View>

{hasReceipt && (
<View style={styles.moneyRequestViewImage}>
<ReportActionItemImage
Expand Down Expand Up @@ -137,6 +138,8 @@ function MoneyRequestView({report, parentReport, shouldShowHorizontalRule, trans
shouldShowRightIcon={canEdit}
titleStyle={styles.flex1}
onPress={() => Navigation.navigate(ROUTES.getEditRequestRoute(report.reportID, CONST.EDIT_REQUEST_FIELD.DESCRIPTION))}
wrapperStyle={[styles.pv2, styles.taskDescriptionMenuItem]}
numberOfLinesTitle={0}
/>
</OfflineWithFeedback>
<OfflineWithFeedback pendingAction={lodashGet(transaction, 'pendingFields.created') || lodashGet(transaction, 'pendingAction')}>
Expand Down
5 changes: 5 additions & 0 deletions src/pages/EditRequestDescriptionPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import styles from '../styles/styles';
import Navigation from '../libs/Navigation/Navigation';
import CONST from '../CONST';
import useLocalize from '../hooks/useLocalize';
import * as Browser from '../libs/Browser';

const propTypes = {
/** Transaction default description value */
Expand Down Expand Up @@ -49,6 +50,10 @@ function EditRequestDescriptionPage({defaultDescription, onSubmit}) {
accessibilityLabel={translate('moneyRequestConfirmationList.whatsItFor')}
accessibilityRole={CONST.ACCESSIBILITY_ROLE.TEXT}
ref={(e) => (descriptionInputRef.current = e)}
autoGrowHeight
containerStyles={[styles.autoGrowHeightMultilineInput]}
textAlignVertical="top"
submitOnEnter={!Browser.isMobile()}
/>
</View>
</Form>
Expand Down

0 comments on commit 90648b7

Please sign in to comment.