fix: direct mode hide proxies

This commit is contained in:
GyDi 2022-11-24 10:35:09 +08:00
parent c51e9e6b2c
commit d20b745ae5
No known key found for this signature in database
GPG Key ID: 9C3AD40F1F99880A

View File

@ -12,6 +12,7 @@ import { useVerge } from "@/hooks/use-verge";
import { useRenderList } from "./use-render-list";
import { ProxyRender } from "./proxy-render";
import delayManager from "@/services/delay";
import { BaseEmpty } from "../base";
interface Props {
mode: string;
@ -103,6 +104,10 @@ export const ProxyGroups = (props: Props) => {
}
};
if (mode === "direct") {
return <BaseEmpty text="Direct Mode" />;
}
return (
<Virtuoso
ref={virtuosoRef}