File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
packages/desktop-client/src/components/mobile/transactions Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -71,23 +71,24 @@ const getScheduleIconStyle = ({ isPreview }: { isPreview: boolean }) => ({
71
71
color : isPreview ? theme . pageTextLight : theme . menuItemText ,
72
72
} ) ;
73
73
74
- type TransactionListItemProps = ComponentPropsWithoutRef <
75
- typeof ListBoxItem < TransactionEntity >
74
+ type TransactionListItemProps = Omit <
75
+ ComponentPropsWithoutRef < typeof ListBoxItem < TransactionEntity > > ,
76
+ 'onPress' | 'onLongPress'
76
77
> & {
78
+ value : TransactionEntity ;
77
79
onPress : ( transaction : TransactionEntity ) => void ;
78
80
onLongPress : ( transaction : TransactionEntity ) => void ;
79
81
} ;
80
82
81
83
export function TransactionListItem ( {
84
+ value : transaction ,
82
85
onPress,
83
86
onLongPress,
84
87
...props
85
88
} : TransactionListItemProps ) {
86
89
const { t } = useTranslation ( ) ;
87
90
const { list : categories } = useCategories ( ) ;
88
91
89
- const { value : transaction } = props ;
90
-
91
92
const payee = usePayee ( transaction ?. payee || '' ) ;
92
93
const displayPayee = useDisplayPayee ( { transaction } ) ;
93
94
You can’t perform that action at this time.
0 commit comments