web: fix type errors

This commit is contained in:
Abdullah Atta
2024-12-23 12:29:07 +05:00
parent 5727aa6c4d
commit baebf79046
4 changed files with 3298 additions and 3250 deletions

View File

@@ -1701,11 +1701,12 @@ For example:
]().toLocaleLowerCase()} in case you lose access to your ${strings[
primary
]().toLocaleLowerCase()}.`,
transactionStatusToText: {
completed: () => t`Completed`,
refunded: () => t`"Refunded`,
partially_refunded: () => t`Partially refunded`,
disputed: () => t`Disputed`
transactionStatusToText: (
key: keyof typeof TRANSACTION_STATUS | ({} & string)
) => {
return key in TRANSACTION_STATUS
? TRANSACTION_STATUS[key as keyof typeof TRANSACTION_STATUS]()
: key;
},
viewReceipt: () => t`View receipt`,
customDictWords: (count: number) =>