fix(ui): remove unused setting, fix missing translation for alerts

This commit is contained in:
psychedelicious
2024-09-12 23:28:11 +10:00
parent d2ab668fa0
commit 637960d67e
9 changed files with 21 additions and 61 deletions

View File

@@ -17,7 +17,7 @@ import {
} from 'features/controlLayers/components/CanvasRightPanel';
import { useImageViewer } from 'features/gallery/components/ImageViewer/useImageViewer';
import { useCurrentDestination } from 'features/queue/hooks/useCurrentDestination';
import { selectShowSendToAlerts, showSendToAlertsChanged } from 'features/system/store/systemSlice';
import { selectShowSendingToAlerts, showSendingToAlertsChanged } from 'features/system/store/systemSlice';
import { setActiveTab } from 'features/ui/store/uiSlice';
import { AnimatePresence, motion } from 'framer-motion';
import type { PropsWithChildren, ReactNode } from 'react';
@@ -116,10 +116,10 @@ const AlertWrapper = ({
}) => {
const { t } = useTranslation();
const dispatch = useAppDispatch();
const showSendToAlerts = useAppSelector(selectShowSendToAlerts);
const showSendToAlerts = useAppSelector(selectShowSendingToAlerts);
const isHovered = useBoolean(false);
const onClickDontShowMeThese = useCallback(() => {
dispatch(showSendToAlertsChanged(false));
dispatch(showSendingToAlertsChanged(false));
isHovered.setFalse();
}, [dispatch, isHovered]);