-
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 #33408 from MrMuzyk/feat/bank-info-step-to-ts
feat: BankInfo migration to ts
- Loading branch information
Showing
14 changed files
with
143 additions
and
464 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import {ComponentType} from 'react'; | ||
|
||
type SubStepProps = { | ||
/** value indicating whether user is editing one of the sub steps */ | ||
isEditing: boolean; | ||
|
||
/** continues to next sub step */ | ||
onNext: () => void; | ||
|
||
/** moves user to passed sub step */ | ||
onMove: (step: number) => void; | ||
|
||
/** index of currently displayed sub step */ | ||
screenIndex?: number; | ||
|
||
/** moves user to previous sub step */ | ||
prevScreen?: () => void; | ||
}; | ||
|
||
type UseSubStep = { | ||
/** array of components that will become sub steps */ | ||
bodyContent: Array<ComponentType<SubStepProps>>; | ||
|
||
/** called on last sub step */ | ||
onFinished: () => void; | ||
|
||
/** index of initial sub step to display */ | ||
startFrom?: number; | ||
}; | ||
|
||
export type {SubStepProps, UseSubStep}; |
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
146 changes: 0 additions & 146 deletions
146
src/pages/ReimbursementAccount/BankAccountManualStep.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.