mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
tidy(ui): memo aspectratiopreview
This commit is contained in:
parent
75a548e3eb
commit
229423b370
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user