Skip to content

Commit

Permalink
Merge pull request #56317 from nkdengineer/fix/55795
Browse files Browse the repository at this point in the history
fix: Add Description Hints to NewDot
  • Loading branch information
MonilBhavsar authored Feb 10, 2025
2 parents 6daa09f + 6dca6b7 commit cd13459
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/iou/request/step/IOURequestStepDescription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ function IOURequestStepDescription({
// eslint-disable-next-line rulesdir/no-negated-variables
const shouldShowNotFoundPage = isEditing && (isSplitBill ? !canEditSplitBill : !isMoneyRequestAction(reportAction) || !canEditMoneyRequest(reportAction));
const isReportInGroupPolicy = !!report?.policyID && report.policyID !== CONST.POLICY.ID_FAKE;
const getDescriptionHint = () => {
return transaction?.category && policyCategories ? policyCategories[transaction?.category]?.commentHint ?? '' : '';
};

return (
<StepScreenWrapper
Expand Down Expand Up @@ -167,6 +170,7 @@ function IOURequestStepDescription({
type="markdown"
excludedMarkdownStyles={!isReportInGroupPolicy ? ['mentionReport'] : []}
ref={inputCallbackRef}
hint={getDescriptionHint()}
/>
</View>
</FormProvider>
Expand Down

0 comments on commit cd13459

Please sign in to comment.