mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): remove unnecessary fragments
This commit is contained in:
parent
d902533387
commit
2a081b0a27
@ -19,19 +19,17 @@ const ClearQueueIconButton = ({
|
|||||||
const { isLoading, isDisabled } = useClearQueue();
|
const { isLoading, isDisabled } = useClearQueue();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<InvIconButton
|
||||||
<InvIconButton
|
isDisabled={isDisabled}
|
||||||
isDisabled={isDisabled}
|
isLoading={isLoading}
|
||||||
isLoading={isLoading}
|
aria-label={t('queue.clear')}
|
||||||
aria-label={t('queue.clear')}
|
tooltip={t('queue.clearTooltip')}
|
||||||
tooltip={t('queue.clearTooltip')}
|
icon={<PiTrashSimpleBold size="16px" />}
|
||||||
icon={<PiTrashSimpleBold size="16px" />}
|
colorScheme="error"
|
||||||
colorScheme="error"
|
onClick={onOpen}
|
||||||
onClick={onOpen}
|
data-testid={t('queue.clear')}
|
||||||
data-testid={t('queue.clear')}
|
{...props}
|
||||||
{...props}
|
/>
|
||||||
/>
|
|
||||||
</>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -41,19 +39,17 @@ const ClearSingleQueueItemIconButton = (props: Props) => {
|
|||||||
useCancelCurrentQueueItem();
|
useCancelCurrentQueueItem();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<InvIconButton
|
||||||
<InvIconButton
|
isDisabled={isDisabled}
|
||||||
isDisabled={isDisabled}
|
isLoading={isLoading}
|
||||||
isLoading={isLoading}
|
aria-label={t('queue.cancel')}
|
||||||
aria-label={t('queue.cancel')}
|
tooltip={t('queue.cancelTooltip')}
|
||||||
tooltip={t('queue.cancelTooltip')}
|
icon={<PiXBold size="16px" />}
|
||||||
icon={<PiXBold size="16px" />}
|
colorScheme="error"
|
||||||
colorScheme="error"
|
onClick={cancelQueueItem}
|
||||||
onClick={cancelQueueItem}
|
data-testid={t('queue.cancel')}
|
||||||
data-testid={t('queue.cancel')}
|
{...props}
|
||||||
{...props}
|
/>
|
||||||
/>
|
|
||||||
</>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user