Skip to content

Commit d6de343

Browse files
committed
typecheck
1 parent 4c7ee65 commit d6de343

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/desktop-client/src/components/mobile/transactions/TransactionListItem.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,23 +71,24 @@ const getScheduleIconStyle = ({ isPreview }: { isPreview: boolean }) => ({
7171
color: isPreview ? theme.pageTextLight : theme.menuItemText,
7272
});
7373

74-
type TransactionListItemProps = ComponentPropsWithoutRef<
75-
typeof ListBoxItem<TransactionEntity>
74+
type TransactionListItemProps = Omit<
75+
ComponentPropsWithoutRef<typeof ListBoxItem<TransactionEntity>>,
76+
'onPress' | 'onLongPress'
7677
> & {
78+
value: TransactionEntity;
7779
onPress: (transaction: TransactionEntity) => void;
7880
onLongPress: (transaction: TransactionEntity) => void;
7981
};
8082

8183
export function TransactionListItem({
84+
value: transaction,
8285
onPress,
8386
onLongPress,
8487
...props
8588
}: TransactionListItemProps) {
8689
const { t } = useTranslation();
8790
const { list: categories } = useCategories();
8891

89-
const { value: transaction } = props;
90-
9192
const payee = usePayee(transaction?.payee || '');
9293
const displayPayee = useDisplayPayee({ transaction });
9394

0 commit comments

Comments
 (0)