feat(ui): memoize all components

This commit is contained in:
psychedelicious
2023-08-21 11:26:16 +10:00
parent 5c305b1eeb
commit fbff22c94b
84 changed files with 486 additions and 440 deletions

View File

@@ -1,6 +1,7 @@
import { Flex } from '@chakra-ui/react';
import CancelButton from './CancelButton';
import InvokeButton from './InvokeButton';
import { memo } from 'react';
/**
* Buttons to start and cancel image generation.
@@ -14,4 +15,4 @@ const ProcessButtons = () => {
);
};
export default ProcessButtons;
export default memo(ProcessButtons);