@homefile/components-v2 2.23.9 → 2.23.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/receipts/receipt/ReceiptDetails.d.ts +1 -1
- package/dist/interfaces/receipts/receipt/DetailsColumn.interface.d.ts +2 -2
- package/package.json +1 -1
- package/src/components/receipts/receipt/ReceiptDetails.tsx +3 -3
- package/src/interfaces/receipts/receipt/DetailsColumn.interface.ts +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ReceiptDetailsDBI } from '../../../interfaces';
|
|
2
|
-
export declare const ReceiptDetails: ({ cashier, itemQuantity, paymentMethod, purchaseDate, tax, store, receiptOrigin, storePhone, total, }: ReceiptDetailsDBI) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const ReceiptDetails: ({ cashier, itemQuantity, paymentMethod, purchaseDate, tax, store, receiptOrigin, storePhone, total, }: Partial<ReceiptDetailsDBI>) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -16,11 +16,11 @@ export const ReceiptDetails = ({
|
|
|
16
16
|
receiptOrigin = 'homeDepot',
|
|
17
17
|
storePhone = '',
|
|
18
18
|
total,
|
|
19
|
-
}: ReceiptDetailsDBI) => {
|
|
19
|
+
}: Partial<ReceiptDetailsDBI>) => {
|
|
20
20
|
const storeImage = receiptOrigins[receiptOrigin]
|
|
21
21
|
const leftLabels = t('receipts.columnLeft').split(',')
|
|
22
22
|
const rightLabels = t('receipts.columnRight').split(',')
|
|
23
|
-
const leftColumn: ColumnDetailsType[] = [
|
|
23
|
+
const leftColumn: Partial<ColumnDetailsType>[] = [
|
|
24
24
|
{
|
|
25
25
|
label: leftLabels[0],
|
|
26
26
|
value: formatDate({ date: purchaseDate }).replace(' ', ' @ '),
|
|
@@ -39,7 +39,7 @@ export const ReceiptDetails = ({
|
|
|
39
39
|
},
|
|
40
40
|
]
|
|
41
41
|
|
|
42
|
-
const rightColumn: ColumnDetailsType[] = [
|
|
42
|
+
const rightColumn: Partial<ColumnDetailsType>[] = [
|
|
43
43
|
{
|
|
44
44
|
label: rightLabels[0],
|
|
45
45
|
value: itemQuantity,
|