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 { 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';
|
||||
|
Loading…
Reference in New Issue
Block a user