tidy(ui): memo aspectratiopreview

This commit is contained in:
psychedelicious 2024-04-23 10:50:48 +10:00
parent 75a548e3eb
commit 229423b370

View File

@ -1,10 +1,13 @@
import { Flex } from '@invoke-ai/ui-library';
import { StageComponent } from 'features/regionalPrompts/components/StageComponent';
import { memo } from 'react';
export const AspectRatioPreview = () => {
export const AspectRatioPreview = memo(() => {
return (
<Flex w="full" h="full" alignItems="center" justifyContent="center">
<Flex w="full" h="full" alignItems="center" justifyContent="center" position="relative">
<StageComponent asPreview />
</Flex>
);
};
});
AspectRatioPreview.displayName = 'AspectRatioPreview';