mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-10-26 11:27:18 +00:00
ADG-10300
This commit is contained in:
parent
df4145f4bb
commit
b68a962dd4
@ -198,7 +198,7 @@ export const Blocklists = () => {
|
||||
/>
|
||||
)}
|
||||
|
||||
<FilterUpdateModal isOpen={openUpdateModal} onClose={() => setOpenUpdateModal(false)} />
|
||||
{openUpdateModal && <FilterUpdateModal onClose={() => setOpenUpdateModal(false)} />}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@ -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>
|
||||
|
||||
|
||||
@ -1,3 +0,0 @@
|
||||
export const cn = (...classes: (string | undefined | null | false)[]): string => {
|
||||
return classes.filter(Boolean).join(' ');
|
||||
};
|
||||
Loading…
Reference in New Issue
Block a user