Skip to content

Commit

Permalink
Merge pull request #26965 from software-mansion-labs/@Skalakid/ts/Rec…
Browse files Browse the repository at this point in the history
…eipt

[TS migration] Migrate 'Receipt.js' lib to TypeScript
  • Loading branch information
srikarparsi authored Sep 8, 2023
2 parents 8e3a979 + 29afcdc commit 29393a8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/libs/actions/Receipt.js → src/libs/actions/Receipt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@ import ONYXKEYS from '../../ONYXKEYS';

/**
* Sets the upload receipt error modal content when an invalid receipt is uploaded
*
* @param {Boolean} isAttachmentInvalid
* @param {String} attachmentInvalidReasonTitle
* @param {String} attachmentInvalidReason
*/
function setUploadReceiptError(isAttachmentInvalid, attachmentInvalidReasonTitle, attachmentInvalidReason) {
function setUploadReceiptError(isAttachmentInvalid: boolean, attachmentInvalidReasonTitle: string, attachmentInvalidReason: string) {
Onyx.merge(ONYXKEYS.RECEIPT_MODAL, {
isAttachmentInvalid,
attachmentInvalidReasonTitle,
Expand Down

0 comments on commit 29393a8

Please sign in to comment.