From 95a3c89a5666e3d4cb38d6182bb65918dd810582 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Sat, 9 Dec 2023 00:00:05 +1100 Subject: [PATCH] chore(ui): lint --- .../listeners/boardIdSelected.ts | 5 ++- .../common/components/SelectionOverlay.tsx | 8 ++--- .../ParamControlAdapterProcessorSelect.tsx | 4 +-- .../sidePanel/NodeEditorPanelGroup.tsx | 6 ++-- .../web/src/services/api/endpoints/images.ts | 35 ++++++++----------- 5 files changed, 25 insertions(+), 33 deletions(-) diff --git a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/boardIdSelected.ts b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/boardIdSelected.ts index a8e1a04fc1..1bd5921d92 100644 --- a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/boardIdSelected.ts +++ b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/boardIdSelected.ts @@ -49,9 +49,8 @@ export const addBoardIdSelectedListener = () => { if (isSuccess) { // the board was just changed - we can select the first image - const { data: boardImagesData } = imagesApi.endpoints.listImages.select( - queryArgs - )(getState()); + const { data: boardImagesData } = + imagesApi.endpoints.listImages.select(queryArgs)(getState()); if (boardImagesData) { const firstImage = imagesSelectors.selectAll(boardImagesData)[0]; diff --git a/invokeai/frontend/web/src/common/components/SelectionOverlay.tsx b/invokeai/frontend/web/src/common/components/SelectionOverlay.tsx index aed5e1f083..99414cad44 100644 --- a/invokeai/frontend/web/src/common/components/SelectionOverlay.tsx +++ b/invokeai/frontend/web/src/common/components/SelectionOverlay.tsx @@ -25,16 +25,16 @@ const SelectionOverlay = ({ isSelected, isHovered }: Props) => { ? 'hoverSelected.light' : 'selected.light' : isHovered - ? 'hoverUnselected.light' - : undefined, + ? 'hoverUnselected.light' + : undefined, _dark: { shadow: isSelected ? isHovered ? 'hoverSelected.dark' : 'selected.dark' : isHovered - ? 'hoverUnselected.dark' - : undefined, + ? 'hoverUnselected.dark' + : undefined, }, }} /> diff --git a/invokeai/frontend/web/src/features/controlAdapters/components/parameters/ParamControlAdapterProcessorSelect.tsx b/invokeai/frontend/web/src/features/controlAdapters/components/parameters/ParamControlAdapterProcessorSelect.tsx index 7e25cd0ac8..2cf08d5fd7 100644 --- a/invokeai/frontend/web/src/features/controlAdapters/components/parameters/ParamControlAdapterProcessorSelect.tsx +++ b/invokeai/frontend/web/src/features/controlAdapters/components/parameters/ParamControlAdapterProcessorSelect.tsx @@ -34,8 +34,8 @@ const selector = createSelector( a.value === 'none' ? -1 : b.value === 'none' - ? 1 - : a.label.localeCompare(b.label) + ? 1 + : a.label.localeCompare(b.label) ) .filter( (d) => diff --git a/invokeai/frontend/web/src/features/nodes/components/sidePanel/NodeEditorPanelGroup.tsx b/invokeai/frontend/web/src/features/nodes/components/sidePanel/NodeEditorPanelGroup.tsx index fd1f20b7a1..77915bd874 100644 --- a/invokeai/frontend/web/src/features/nodes/components/sidePanel/NodeEditorPanelGroup.tsx +++ b/invokeai/frontend/web/src/features/nodes/components/sidePanel/NodeEditorPanelGroup.tsx @@ -1,4 +1,5 @@ import { Flex } from '@chakra-ui/react'; +import ParamIterations from 'features/parameters/components/Parameters/Core/ParamIterations'; import QueueControls from 'features/queue/components/QueueControls'; import ResizeHandle from 'features/ui/components/tabs/ResizeHandle'; import { usePanelStorage } from 'features/ui/hooks/usePanelStorage'; @@ -11,7 +12,6 @@ import { import 'reactflow/dist/style.css'; import InspectorPanel from './inspector/InspectorPanel'; import WorkflowPanel from './workflow/WorkflowPanel'; -import ParamIterations from 'features/parameters/components/Parameters/Core/ParamIterations'; const NodeEditorPanelGroup = () => { const [isTopPanelCollapsed, setIsTopPanelCollapsed] = useState(false); @@ -65,8 +65,8 @@ const NodeEditorPanelGroup = () => { isTopPanelCollapsed ? 'top' : isBottomPanelCollapsed - ? 'bottom' - : undefined + ? 'bottom' + : undefined } />