mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
feat(ui): migrate to @invoke-ai/ui
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { InvButton } from 'common/components/InvButton/InvButton';
|
||||
import { Button } from '@invoke-ai/ui';
|
||||
import { useDisableInvocationCache } from 'features/queue/hooks/useDisableInvocationCache';
|
||||
import { useEnableInvocationCache } from 'features/queue/hooks/useEnableInvocationCache';
|
||||
import { memo } from 'react';
|
||||
@@ -23,24 +23,24 @@ const ToggleInvocationCacheButton = () => {
|
||||
|
||||
if (cacheStatus?.enabled) {
|
||||
return (
|
||||
<InvButton
|
||||
<Button
|
||||
isDisabled={isDisableDisabled}
|
||||
isLoading={isDisableLoading}
|
||||
onClick={disableInvocationCache}
|
||||
>
|
||||
{t('invocationCache.disable')}
|
||||
</InvButton>
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<InvButton
|
||||
<Button
|
||||
isDisabled={isEnableDisabled}
|
||||
isLoading={isEnableLoading}
|
||||
onClick={enableInvocationCache}
|
||||
>
|
||||
{t('invocationCache.enable')}
|
||||
</InvButton>
|
||||
</Button>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user