mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-29 02:54:09 -05:00
[autofix.ci] apply automated fixes
This commit is contained in:
committed by
Joel Jeremy Marquez
parent
de6f7cb59b
commit
25c5a59ca1
@@ -87,8 +87,9 @@ type ComboBoxInputContextValue = {
|
||||
getFocusedKey?: (state: AriaComboBoxState<unknown>) => Key | null;
|
||||
};
|
||||
|
||||
const ComboBoxInputContext =
|
||||
createContext<ComboBoxInputContextValue | null>(null);
|
||||
const ComboBoxInputContext = createContext<ComboBoxInputContextValue | null>(
|
||||
null,
|
||||
);
|
||||
|
||||
type ComboBoxInputProviderProps = {
|
||||
children: ReactNode;
|
||||
@@ -143,17 +144,18 @@ function defaultGetFocusedKey<T>(state: AriaComboBoxState<T>) {
|
||||
);
|
||||
}
|
||||
|
||||
const defaultComboBoxSectionClassName = () => css({
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
justifyContent: 'center',
|
||||
'& header': {
|
||||
paddingTop: 5,
|
||||
paddingBottom: 5,
|
||||
paddingLeft: 10,
|
||||
color: theme.menuAutoCompleteTextHeader,
|
||||
},
|
||||
});
|
||||
const defaultComboBoxSectionClassName = () =>
|
||||
css({
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
justifyContent: 'center',
|
||||
'& header': {
|
||||
paddingTop: 5,
|
||||
paddingBottom: 5,
|
||||
paddingLeft: 10,
|
||||
color: theme.menuAutoCompleteTextHeader,
|
||||
},
|
||||
});
|
||||
|
||||
type ComboBoxSectionProps<T extends object> = ListBoxSectionProps<T>;
|
||||
|
||||
@@ -169,21 +171,19 @@ export function ComboBoxSection<T extends object>({
|
||||
);
|
||||
}
|
||||
|
||||
const defaultComboBoxItemClassName = () => css({
|
||||
display: 'flex',
|
||||
flexDirection: 'row',
|
||||
alignItems: 'center',
|
||||
paddingTop: 5,
|
||||
paddingBottom: 5,
|
||||
paddingLeft: 20,
|
||||
});
|
||||
const defaultComboBoxItemClassName = () =>
|
||||
css({
|
||||
display: 'flex',
|
||||
flexDirection: 'row',
|
||||
alignItems: 'center',
|
||||
paddingTop: 5,
|
||||
paddingBottom: 5,
|
||||
paddingLeft: 20,
|
||||
});
|
||||
|
||||
type ComboBoxItemProps = ListBoxItemProps;
|
||||
|
||||
export function ComboBoxItem({
|
||||
className,
|
||||
...props
|
||||
}: ComboBoxItemProps) {
|
||||
export function ComboBoxItem({ className, ...props }: ComboBoxItemProps) {
|
||||
return (
|
||||
<ListBoxItem
|
||||
className={
|
||||
|
||||
@@ -2,7 +2,12 @@ import { type ComponentProps, useMemo, useState } from 'react';
|
||||
import { Header, type Key } from 'react-aria-components';
|
||||
import { Trans, useTranslation } from 'react-i18next';
|
||||
|
||||
import { ComboBox, ComboBoxInputProvider, ComboBoxItem, ComboBoxSection } from '@actual-app/components/combo-box';
|
||||
import {
|
||||
ComboBox,
|
||||
ComboBoxInputProvider,
|
||||
ComboBoxItem,
|
||||
ComboBoxSection,
|
||||
} from '@actual-app/components/combo-box';
|
||||
import { SvgAdd } from '@actual-app/components/icons/v1';
|
||||
import { theme } from '@actual-app/components/theme';
|
||||
|
||||
@@ -25,10 +30,7 @@ type PayeeComboBoxItem = PayeeEntity & {
|
||||
type: 'account' | 'payee' | 'suggested';
|
||||
};
|
||||
|
||||
type PayeeComboBoxProps = Omit<
|
||||
ComponentProps<typeof ComboBox>,
|
||||
'children'
|
||||
> & {
|
||||
type PayeeComboBoxProps = Omit<ComponentProps<typeof ComboBox>, 'children'> & {
|
||||
showInactive?: boolean;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user