mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
refactor(ui): disable the preview renderer for now
This commit is contained in:
parent
2b478ee7e1
commit
e55896240d
@ -1,21 +1,21 @@
|
|||||||
import { Flex } from '@invoke-ai/ui-library';
|
|
||||||
import { useStore } from '@nanostores/react';
|
import { useStore } from '@nanostores/react';
|
||||||
import { StageComponent } from 'features/controlLayers/components/StageComponent';
|
|
||||||
import { $isPreviewVisible } from 'features/controlLayers/store/canvasV2Slice';
|
import { $isPreviewVisible } from 'features/controlLayers/store/canvasV2Slice';
|
||||||
|
import { AspectRatioIconPreview } from 'features/parameters/components/ImageSize/AspectRatioIconPreview';
|
||||||
import { memo } from 'react';
|
import { memo } from 'react';
|
||||||
|
|
||||||
export const AspectRatioCanvasPreview = memo(() => {
|
export const AspectRatioCanvasPreview = memo(() => {
|
||||||
const isPreviewVisible = useStore($isPreviewVisible);
|
const isPreviewVisible = useStore($isPreviewVisible);
|
||||||
|
|
||||||
|
return <AspectRatioIconPreview />;
|
||||||
// if (!isPreviewVisible) {
|
// if (!isPreviewVisible) {
|
||||||
// return <AspectRatioIconPreview />;
|
// return <AspectRatioIconPreview />;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
return (
|
// return (
|
||||||
<Flex w="full" h="full" alignItems="center" justifyContent="center" position="relative">
|
// <Flex w="full" h="full" alignItems="center" justifyContent="center" position="relative">
|
||||||
<StageComponent asPreview />
|
// <StageComponent asPreview />
|
||||||
</Flex>
|
// </Flex>
|
||||||
);
|
// );
|
||||||
});
|
});
|
||||||
|
|
||||||
AspectRatioCanvasPreview.displayName = 'AspectRatioCanvasPreview';
|
AspectRatioCanvasPreview.displayName = 'AspectRatioCanvasPreview';
|
||||||
|
Loading…
Reference in New Issue
Block a user