mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-04 22:32:12 +03:00
This commit is contained in:
committed by
GitHub
parent
cdb4998ea4
commit
d84ccbc67c
@@ -139,6 +139,16 @@ export default function FreePoolTab() {
|
||||
});
|
||||
};
|
||||
|
||||
const handleToggleSource = (source: SourceId) => {
|
||||
setDisabledSources((prev) => {
|
||||
const next = new Set(prev);
|
||||
if (next.has(source)) next.delete(source);
|
||||
else next.add(source);
|
||||
saveDisabledSources(next);
|
||||
return next;
|
||||
});
|
||||
};
|
||||
|
||||
const handleToggleSelect = (id: string) => {
|
||||
setSelected((prev) => {
|
||||
const next = new Set(prev);
|
||||
|
||||
Reference in New Issue
Block a user