-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32655 from pasyukevich/feature/migrate-MoneyRepor…
…tHeaderStatusBar [TS migration] Migrate 'MoneyReportHeaderStatusBar.js' component to TypeScript
- Loading branch information
Showing
5 changed files
with
64 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
type Message = { | ||
text: string; | ||
type?: string; | ||
action?: string; | ||
}; | ||
|
||
type DataOptions = { | ||
canSeeACHOption?: boolean; | ||
isManualReimbursementEnabled?: boolean; | ||
maskedLockedAccountNumber?: string; | ||
preferredWithdrawalDeleted?: boolean; | ||
}; | ||
|
||
type Button = { | ||
text?: string; | ||
tooltip?: string; | ||
disabled?: boolean; | ||
hidden?: boolean; | ||
data?: DataOptions; | ||
}; | ||
|
||
type ReportNextStep = { | ||
/** The message parts of the next step */ | ||
message?: Message[]; | ||
|
||
/** The title for the next step */ | ||
title?: string; | ||
|
||
/** Whether the user should take some sort of action in order to unblock the report */ | ||
requiresUserAction?: boolean; | ||
|
||
/** The type of next step */ | ||
type: 'alert' | 'neutral' | null; | ||
|
||
/** If the "Undo submit" button should be visible */ | ||
showUndoSubmit?: boolean; | ||
|
||
/** Deprecated - If the next step should be displayed on mobile, related to OldApp */ | ||
showForMobile?: boolean; | ||
|
||
/** If the next step should be displayed at the expense level */ | ||
showForExpense?: boolean; | ||
|
||
/** An optional alternate message to display on expenses instead of what is provided in the "message" field */ | ||
expenseMessage?: Message[]; | ||
|
||
/** The next person in the approval chain of the report */ | ||
nextReceiver?: string; | ||
|
||
/** An array of buttons to be displayed next to the next step */ | ||
buttons?: Record<string, Button>; | ||
}; | ||
|
||
export default ReportNextStep; | ||
|
||
export type {Message}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters