From 22bd33b7c681f14df2ec8aef944d0c2ea8ac0911 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Tue, 30 Apr 2024 13:11:07 +1000 Subject: [PATCH] chore(ui): lint --- .../features/regionalPrompts/components/AddLayerButton.tsx | 2 +- .../components/RPLayerMenuArrangeActions.tsx | 7 +------ .../web/src/features/regionalPrompts/store/actions.ts | 3 --- .../features/regionalPrompts/store/regionalPromptsSlice.ts | 1 - .../web/src/features/regionalPrompts/store/types.ts | 4 ++-- 5 files changed, 4 insertions(+), 13 deletions(-) delete mode 100644 invokeai/frontend/web/src/features/regionalPrompts/store/actions.ts diff --git a/invokeai/frontend/web/src/features/regionalPrompts/components/AddLayerButton.tsx b/invokeai/frontend/web/src/features/regionalPrompts/components/AddLayerButton.tsx index d0d10ac987..b112cebe1b 100644 --- a/invokeai/frontend/web/src/features/regionalPrompts/components/AddLayerButton.tsx +++ b/invokeai/frontend/web/src/features/regionalPrompts/components/AddLayerButton.tsx @@ -1,6 +1,6 @@ import { Button, Menu, MenuButton, MenuItem, MenuList } from '@invoke-ai/ui-library'; -import { useAppDispatch } from 'app/store/storeHooks'; import { guidanceLayerAdded } from 'app/store/middleware/listenerMiddleware/listeners/regionalControlToControlAdapterBridge'; +import { useAppDispatch } from 'app/store/storeHooks'; import { memo, useCallback } from 'react'; import { useTranslation } from 'react-i18next'; import { PiPlusBold } from 'react-icons/pi'; diff --git a/invokeai/frontend/web/src/features/regionalPrompts/components/RPLayerMenuArrangeActions.tsx b/invokeai/frontend/web/src/features/regionalPrompts/components/RPLayerMenuArrangeActions.tsx index e3fe918ff0..99878cb95c 100644 --- a/invokeai/frontend/web/src/features/regionalPrompts/components/RPLayerMenuArrangeActions.tsx +++ b/invokeai/frontend/web/src/features/regionalPrompts/components/RPLayerMenuArrangeActions.tsx @@ -11,12 +11,7 @@ import { } from 'features/regionalPrompts/store/regionalPromptsSlice'; import { memo, useCallback, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; -import { - PiArrowDownBold, - PiArrowLineDownBold, - PiArrowLineUpBold, - PiArrowUpBold, -} from 'react-icons/pi'; +import { PiArrowDownBold, PiArrowLineDownBold, PiArrowLineUpBold, PiArrowUpBold } from 'react-icons/pi'; import { assert } from 'tsafe'; type Props = { layerId: string }; diff --git a/invokeai/frontend/web/src/features/regionalPrompts/store/actions.ts b/invokeai/frontend/web/src/features/regionalPrompts/store/actions.ts deleted file mode 100644 index b28b04f643..0000000000 --- a/invokeai/frontend/web/src/features/regionalPrompts/store/actions.ts +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/invokeai/frontend/web/src/features/regionalPrompts/store/regionalPromptsSlice.ts b/invokeai/frontend/web/src/features/regionalPrompts/store/regionalPromptsSlice.ts index da5fa8aef7..0d94b8624c 100644 --- a/invokeai/frontend/web/src/features/regionalPrompts/store/regionalPromptsSlice.ts +++ b/invokeai/frontend/web/src/features/regionalPrompts/store/regionalPromptsSlice.ts @@ -584,7 +584,6 @@ export const TOOL_PREVIEW_BRUSH_BORDER_OUTER_ID = 'tool_preview_layer.brush_bord export const TOOL_PREVIEW_RECT_ID = 'tool_preview_layer.rect'; export const BACKGROUND_LAYER_ID = 'background_layer'; export const BACKGROUND_RECT_ID = 'background_layer.rect'; -export const CONTROLNET_LAYER_TRANSFORMER_ID = 'control_adapter_layer.transformer'; // Names (aka classes) for Konva layers and objects export const CONTROLNET_LAYER_NAME = 'control_adapter_layer'; diff --git a/invokeai/frontend/web/src/features/regionalPrompts/store/types.ts b/invokeai/frontend/web/src/features/regionalPrompts/store/types.ts index af2d2aeaf4..ac66c013d6 100644 --- a/invokeai/frontend/web/src/features/regionalPrompts/store/types.ts +++ b/invokeai/frontend/web/src/features/regionalPrompts/store/types.ts @@ -32,12 +32,12 @@ export type VectorMaskRect = { height: number; }; -export type LayerBase = { +type LayerBase = { id: string; isEnabled: boolean; }; -export type RenderableLayerBase = LayerBase & { +type RenderableLayerBase = LayerBase & { x: number; y: number; bbox: IRect | null;