tidy(ui): organise postprocessing files

This commit is contained in:
psychedelicious 2024-07-24 07:38:16 +10:00
parent 93e95ce53f
commit 5f4ce6fda3
3 changed files with 6 additions and 6 deletions

View File

@ -14,7 +14,7 @@ import { selectLastSelectedImage } from 'features/gallery/store/gallerySelectors
import { selectGallerySlice } from 'features/gallery/store/gallerySlice';
import { parseAndRecallImageDimensions } from 'features/metadata/util/handlers';
import { $templates } from 'features/nodes/store/nodesSlice';
import ParamUpscalePopover from 'features/parameters/components/Upscale/ParamUpscaleSettings';
import { PostProcessingPopover } from 'features/parameters/components/PostProcessing/PostProcessingPopover';
import { useIsQueueMutationInProgress } from 'features/queue/hooks/useIsQueueMutationInProgress';
import { useFeatureStatus } from 'features/system/hooks/useFeatureStatus';
import { selectSystemSlice } from 'features/system/store/systemSlice';
@ -193,7 +193,7 @@ const CurrentImageButtons = () => {
{isUpscalingEnabled && (
<ButtonGroup isDisabled={isQueueMutationInProgress}>
{isUpscalingEnabled && <ParamUpscalePopover imageDTO={imageDTO} />}
{isUpscalingEnabled && <PostProcessingPopover imageDTO={imageDTO} />}
</ButtonGroup>
)}

View File

@ -12,7 +12,7 @@ import {
import { upscaleRequested } from 'app/store/middleware/listenerMiddleware/listeners/upscaleRequested';
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
import { $installModelsTab } from 'features/modelManagerV2/subpanels/InstallModels';
import ParamPostProcessingModel from 'features/parameters/components/Upscale/ParamPostProcessingModel';
import ParamPostProcessingModel from 'features/parameters/components/PostProcessing/ParamPostProcessingModel';
import { useIsQueueMutationInProgress } from 'features/queue/hooks/useIsQueueMutationInProgress';
import { setActiveTab } from 'features/ui/store/uiSlice';
import { memo, useCallback } from 'react';
@ -22,7 +22,7 @@ import type { ImageDTO } from 'services/api/types';
type Props = { imageDTO?: ImageDTO };
const ParamUpscalePopover = (props: Props) => {
export const PostProcessingPopover = memo((props: Props) => {
const { imageDTO } = props;
const dispatch = useAppDispatch();
const { postProcessingModel } = useAppSelector((s) => s.upscale);
@ -61,9 +61,9 @@ const ParamUpscalePopover = (props: Props) => {
</PopoverContent>
</Popover>
);
};
});
export default memo(ParamUpscalePopover);
PostProcessingPopover.displayName = 'PostProcessingPopover';
const MissingModelWarning = () => {
const dispatch = useAppDispatch();