mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): ts issue from react-virtuoso
This commit is contained in:
parent
9179a2f96b
commit
33900d2419
@ -1,11 +1,10 @@
|
|||||||
import { Flex, forwardRef } from '@invoke-ai/ui-library';
|
import { Flex, forwardRef, typedMemo } from '@invoke-ai/ui-library';
|
||||||
import { memo } from 'react';
|
|
||||||
import type { Components } from 'react-virtuoso';
|
import type { Components } from 'react-virtuoso';
|
||||||
import type { SessionQueueItemDTO } from 'services/api/types';
|
import type { SessionQueueItemDTO } from 'services/api/types';
|
||||||
|
|
||||||
import type { ListContext } from './types';
|
import type { ListContext } from './types';
|
||||||
|
|
||||||
const QueueListComponent: Components<SessionQueueItemDTO, ListContext>['List'] = memo(
|
const QueueListComponent: Components<SessionQueueItemDTO, ListContext>['List'] = typedMemo(
|
||||||
forwardRef((props, ref) => {
|
forwardRef((props, ref) => {
|
||||||
return (
|
return (
|
||||||
<Flex {...props} ref={ref} flexDirection="column" gap={0.5}>
|
<Flex {...props} ref={ref} flexDirection="column" gap={0.5}>
|
||||||
@ -15,4 +14,6 @@ const QueueListComponent: Components<SessionQueueItemDTO, ListContext>['List'] =
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
export default memo(QueueListComponent);
|
QueueListComponent.displayName = 'QueueListComponent';
|
||||||
|
|
||||||
|
export default QueueListComponent;
|
||||||
|
Loading…
Reference in New Issue
Block a user