mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-28 10:33:02 -05:00
fix split transaction button on desktop (#6269)
* fix split transaction button on desktop * note
This commit is contained in:
@@ -136,12 +136,20 @@ function CategoryList({
|
||||
}}
|
||||
>
|
||||
{splitTransaction &&
|
||||
renderSplitTransactionButton({
|
||||
key: 'split',
|
||||
...(getItemProps ? getItemProps({ item: splitTransaction }) : {}),
|
||||
highlighted: splitTransaction.highlightedIndex === highlightedIndex,
|
||||
embedded,
|
||||
})}
|
||||
(() => {
|
||||
const splitButtonProps = getItemProps
|
||||
? getItemProps({ item: splitTransaction })
|
||||
: {};
|
||||
const { onClick, ...restSplitButtonProps } = splitButtonProps;
|
||||
return renderSplitTransactionButton({
|
||||
key: 'split',
|
||||
...restSplitButtonProps,
|
||||
onClick,
|
||||
highlighted:
|
||||
splitTransaction.highlightedIndex === highlightedIndex,
|
||||
embedded,
|
||||
});
|
||||
})()}
|
||||
{groupedCategories.map(({ group, categories }) => {
|
||||
if (!group) {
|
||||
return null;
|
||||
@@ -334,7 +342,7 @@ function defaultRenderCategoryItemGroupHeader(
|
||||
return <ItemHeader {...props} type="category" />;
|
||||
}
|
||||
|
||||
type SplitTransactionButtonProps = {
|
||||
type SplitTransactionButtonProps = ComponentPropsWithoutRef<typeof View> & {
|
||||
Icon?: ComponentType<SVGProps<SVGElement>>;
|
||||
highlighted?: boolean;
|
||||
embedded?: boolean;
|
||||
|
||||
6
upcoming-release-notes/6269.md
Normal file
6
upcoming-release-notes/6269.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [matt-fidd]
|
||||
---
|
||||
|
||||
Fix split transaction button on desktop
|
||||
Reference in New Issue
Block a user