ADG-10300

This commit is contained in:
Ildar Kamalov 2025-09-02 16:00:02 +03:00
parent df4145f4bb
commit b68a962dd4
3 changed files with 3 additions and 7 deletions

View File

@ -198,7 +198,7 @@ export const Blocklists = () => {
/>
)}
<FilterUpdateModal isOpen={openUpdateModal} onClose={() => setOpenUpdateModal(false)} />
{openUpdateModal && <FilterUpdateModal onClose={() => setOpenUpdateModal(false)} />}
</div>
);
};

View File

@ -50,11 +50,10 @@ type FormValues = {
};
type Props = {
isOpen: boolean;
onClose: () => void;
};
export const FilterUpdateModal = ({ isOpen, onClose }: Props) => {
export const FilterUpdateModal = ({ onClose }: Props) => {
const dispatch = useDispatch();
const { filtering } = useSelector((state: RootState) => state);
const { processingSetConfig, interval: currentInterval } = filtering;
@ -83,7 +82,7 @@ export const FilterUpdateModal = ({ isOpen, onClose }: Props) => {
};
return (
<Dialog visible={isOpen} onClose={onClose} title={intl.getMessage('update_filters_title')}>
<Dialog visible onClose={onClose} title={intl.getMessage('update_filters_title')}>
<form onSubmit={handleSubmit(onSubmit)}>
<div className={theme.dialog.description}>{intl.getMessage('update_filters_desc')}</div>

View File

@ -1,3 +0,0 @@
export const cn = (...classes: (string | undefined | null | false)[]): string => {
return classes.filter(Boolean).join(' ');
};