refactor(ui): disable the preview renderer for now

This commit is contained in:
psychedelicious 2024-06-18 17:25:39 +10:00
parent 2b478ee7e1
commit e55896240d

View File

@ -1,21 +1,21 @@
import { Flex } from '@invoke-ai/ui-library';
import { useStore } from '@nanostores/react';
import { StageComponent } from 'features/controlLayers/components/StageComponent';
import { $isPreviewVisible } from 'features/controlLayers/store/canvasV2Slice';
import { AspectRatioIconPreview } from 'features/parameters/components/ImageSize/AspectRatioIconPreview';
import { memo } from 'react';
export const AspectRatioCanvasPreview = memo(() => {
const isPreviewVisible = useStore($isPreviewVisible);
return <AspectRatioIconPreview />;
// if (!isPreviewVisible) {
// return <AspectRatioIconPreview />;
// }
return (
<Flex w="full" h="full" alignItems="center" justifyContent="center" position="relative">
<StageComponent asPreview />
</Flex>
);
// return (
// <Flex w="full" h="full" alignItems="center" justifyContent="center" position="relative">
// <StageComponent asPreview />
// </Flex>
// );
});
AspectRatioCanvasPreview.displayName = 'AspectRatioCanvasPreview';