mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-04 06:15:05 -05:00
chore(ui): lint
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
import { Alert, AlertIcon, AlertTitle } from '@invoke-ai/ui-library';
|
||||
import { useAppSelector } from 'app/store/storeHooks';
|
||||
import { selectPreserveMask } from 'features/controlLayers/store/canvasSettingsSlice';
|
||||
import { memo } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
export const CanvasAlertsPreserveMask = memo(() => {
|
||||
const { t } = useTranslation();
|
||||
const preserveMask = useAppSelector(selectPreserveMask);
|
||||
|
||||
if (!preserveMask) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<Alert status="warning" borderRadius="base" fontSize="sm" shadow="md" w="fit-content" alignSelf="flex-end">
|
||||
<AlertIcon />
|
||||
<AlertTitle>{t('controlLayers.settings.preserveMask.alert')}</AlertTitle>
|
||||
</Alert>
|
||||
);
|
||||
});
|
||||
|
||||
CanvasAlertsPreserveMask.displayName = 'CanvasAlertsPreserveMask';
|
||||
Reference in New Issue
Block a user