mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
chore(ui): lint
This commit is contained in:
@@ -497,7 +497,7 @@
|
||||
}
|
||||
},
|
||||
"video": {
|
||||
"title": "Video"
|
||||
"title": "Video"
|
||||
},
|
||||
"canvas": {
|
||||
"title": "Canvas",
|
||||
|
||||
@@ -23,11 +23,11 @@ import {
|
||||
} from 'features/controlLayers/store/types';
|
||||
import type { ModelIdentifierField } from 'features/nodes/types/common';
|
||||
import { zModelIdentifierField } from 'features/nodes/types/common';
|
||||
import { REQUIRES_STARTING_FRAME_BASE_MODELS } from 'features/parameters/types/constants';
|
||||
import { modelConfigsAdapterSelectors, selectModelConfigsQuery } from 'services/api/endpoints/models';
|
||||
import { isVideoModelConfig } from 'services/api/types';
|
||||
import { assert } from 'tsafe';
|
||||
import z from 'zod';
|
||||
import { REQUIRES_STARTING_FRAME_BASE_MODELS } from '../types/constants';
|
||||
|
||||
const zVideoState = z.object({
|
||||
_version: z.literal(1),
|
||||
@@ -125,7 +125,7 @@ export const videoSliceConfig: SliceConfig<typeof slice> = {
|
||||
};
|
||||
|
||||
export const selectVideoSlice = (state: RootState) => state.video;
|
||||
const createVideoSelector = <T,>(selector: Selector<VideoState, T>) => createSelector(selectVideoSlice, selector);
|
||||
const createVideoSelector = <T>(selector: Selector<VideoState, T>) => createSelector(selectVideoSlice, selector);
|
||||
|
||||
export const selectStartingFrameImage = createVideoSelector((video) => video.startingFrameImage);
|
||||
export const selectVideoModel = createVideoSelector((video) => video.videoModel);
|
||||
|
||||
@@ -183,7 +183,7 @@ export const useHotkeyData = (): HotkeysData => {
|
||||
addHotkey('gallery', 'starImage', ['.']);
|
||||
|
||||
return data;
|
||||
}, [isMacOS, isModelManagerEnabled, t]);
|
||||
}, [isMacOS, isVideoEnabled, isModelManagerEnabled, t]);
|
||||
|
||||
return hotkeysData;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user