tidy(ui): clean up unused code 5

variables, types and schemas
This commit is contained in:
psychedelicious
2024-02-27 18:13:16 +11:00
parent b661d93bd8
commit d99bec8b1a
44 changed files with 151 additions and 996 deletions

View File

@ -1,7 +1,7 @@
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
export type HotkeyListItem = {
type HotkeyListItem = {
title: string;
desc: string;
hotkeys: string[][];

View File

@ -7,7 +7,7 @@ import { useTranslation } from 'react-i18next';
import { useClearIntermediatesMutation, useGetIntermediatesCountQuery } from 'services/api/endpoints/images';
import { useGetQueueStatusQuery } from 'services/api/endpoints/queue';
export type UseClearIntermediatesReturn = {
type UseClearIntermediatesReturn = {
intermediatesCount: number | undefined;
clearIntermediates: () => void;
isLoading: boolean;

View File

@ -28,7 +28,7 @@ const StickyScrollableContent = memo((props: StickyScrollableContentProps) => {
StickyScrollableContent.displayName = 'StickyScrollableContent';
export type StickyScrollableProps = PropsWithChildren<{
type StickyScrollableProps = PropsWithChildren<{
title: string;
}>;

View File

@ -3,9 +3,9 @@ import type { LogLevel } from 'app/logging/logger';
import type { ProgressImage } from 'services/events/types';
import { z } from 'zod';
export type SystemStatus = 'CONNECTED' | 'DISCONNECTED' | 'PROCESSING' | 'ERROR' | 'LOADING_MODEL';
type SystemStatus = 'CONNECTED' | 'DISCONNECTED' | 'PROCESSING' | 'ERROR' | 'LOADING_MODEL';
export type DenoiseProgress = {
type DenoiseProgress = {
session_id: string;
batch_id: string;
progress_image: ProgressImage | null | undefined;