mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): tsc
This commit is contained in:
parent
3c4150d153
commit
4716632c23
@ -22,6 +22,7 @@ import {
|
|||||||
selectOptimalDimension,
|
selectOptimalDimension,
|
||||||
widthChanged,
|
widthChanged,
|
||||||
} from 'features/parameters/store/generationSlice';
|
} from 'features/parameters/store/generationSlice';
|
||||||
|
import { activeTabNameSelector } from 'features/ui/store/uiSelectors';
|
||||||
import { memo, useCallback, useEffect, useMemo, useState } from 'react';
|
import { memo, useCallback, useEffect, useMemo, useState } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { FaRulerVertical, FaSave, FaUndo } from 'react-icons/fa';
|
import { FaRulerVertical, FaSave, FaUndo } from 'react-icons/fa';
|
||||||
@ -51,7 +52,7 @@ const ControlAdapterImagePreview = ({ isSmall, id }: Props) => {
|
|||||||
const processorType = useControlAdapterProcessorType(id);
|
const processorType = useControlAdapterProcessorType(id);
|
||||||
const autoAddBoardId = useAppSelector((s) => s.gallery.autoAddBoardId);
|
const autoAddBoardId = useAppSelector((s) => s.gallery.autoAddBoardId);
|
||||||
const isConnected = useAppSelector((s) => s.system.isConnected);
|
const isConnected = useAppSelector((s) => s.system.isConnected);
|
||||||
const activeTabName = useAppSelector(selectActiveTabname);
|
const activeTabName = useAppSelector(activeTabNameSelector);
|
||||||
const optimalDimension = useAppSelector(selectOptimalDimension);
|
const optimalDimension = useAppSelector(selectOptimalDimension);
|
||||||
const pendingControlImages = useAppSelector(selectPendingControlImages);
|
const pendingControlImages = useAppSelector(selectPendingControlImages);
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ const ParamControlAdapterModel = ({ id }: ParamControlAdapterModelProps) => {
|
|||||||
const currentBaseModel = useAppSelector(
|
const currentBaseModel = useAppSelector(
|
||||||
(s) => s.generation.model?.base_model
|
(s) => s.generation.model?.base_model
|
||||||
);
|
);
|
||||||
const { mainModel } = useAppSelector(selectMainModel);
|
const mainModel = useAppSelector(selectMainModel);
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
const models = useControlAdapterModelEntities(controlAdapterType);
|
const models = useControlAdapterModelEntities(controlAdapterType);
|
||||||
|
Loading…
Reference in New Issue
Block a user