mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
lint
This commit is contained in:
parent
415a1c7a4f
commit
c9ddbb4241
@ -1,13 +1,13 @@
|
||||
import { Divider, Flex } from '@chakra-ui/layout';
|
||||
import type { SystemStyleObject } from '@chakra-ui/react';
|
||||
import { Collapse, Icon, useDisclosure } from '@chakra-ui/react';
|
||||
import { useAppDispatch } from 'app/store/storeHooks';
|
||||
import type { InvExpanderProps } from 'common/components/InvExpander/types';
|
||||
import { InvText } from 'common/components/InvText/wrapper';
|
||||
import { expanderToggled } from 'features/parameters/store/actions';
|
||||
import { t } from 'i18next';
|
||||
import { useCallback } from 'react';
|
||||
import { BiCollapseVertical, BiExpandVertical } from 'react-icons/bi';
|
||||
import { useAppDispatch } from '../../../app/store/storeHooks';
|
||||
import { expanderToggled } from '../../../features/parameters/store/actions';
|
||||
|
||||
const buttonStyles: SystemStyleObject = {
|
||||
color: 'base.400',
|
||||
|
@ -3,6 +3,5 @@ import type { PropsWithChildren } from 'react';
|
||||
export type InvExpanderProps = PropsWithChildren<{
|
||||
label?: string;
|
||||
defaultIsOpen?: boolean;
|
||||
onClick?: (isOpen: boolean) => void;
|
||||
id?: string;
|
||||
}>;
|
||||
|
@ -1,14 +1,14 @@
|
||||
import { useAppDispatch } from 'app/store/storeHooks';
|
||||
import { InvAccordionButton } from 'common/components/InvAccordion/InvAccordionButton';
|
||||
import {
|
||||
InvAccordion,
|
||||
InvAccordionItem,
|
||||
InvAccordionPanel,
|
||||
} from 'common/components/InvAccordion/wrapper';
|
||||
import { singleAccordionExpanded } from 'features/parameters/store/actions';
|
||||
import { memo, useCallback } from 'react';
|
||||
|
||||
import type { InvSingleAccordionProps } from './types';
|
||||
import { singleAccordionExpanded } from '../../../features/parameters/store/actions';
|
||||
import { useAppDispatch } from '../../../app/store/storeHooks';
|
||||
|
||||
export const InvSingleAccordion = memo((props: InvSingleAccordionProps) => {
|
||||
const dispatch = useAppDispatch();
|
||||
@ -18,7 +18,7 @@ export const InvSingleAccordion = memo((props: InvSingleAccordionProps) => {
|
||||
dispatch(singleAccordionExpanded({ id: props.id, isOpen }));
|
||||
}
|
||||
},
|
||||
[props]
|
||||
[props, dispatch]
|
||||
);
|
||||
|
||||
return (
|
||||
|
@ -9,10 +9,10 @@ export const modelSelected = createAction<MainModelField>(
|
||||
'generation/modelSelected'
|
||||
);
|
||||
|
||||
export const expanderToggled = createAction<{ id: string, isOpen: boolean }>(
|
||||
export const expanderToggled = createAction<{ id: string; isOpen: boolean }>(
|
||||
'parameters/expanderToggled'
|
||||
);
|
||||
export const singleAccordionExpanded = createAction<{ id: string, isOpen: boolean }>(
|
||||
'parameters/singleAccordionExpanded'
|
||||
);
|
||||
|
||||
export const singleAccordionExpanded = createAction<{
|
||||
id: string;
|
||||
isOpen: boolean;
|
||||
}>('parameters/singleAccordionExpanded');
|
||||
|
Loading…
Reference in New Issue
Block a user