feat: record selected proxy

This commit is contained in:
GyDi committed 2021-12-28 01:47:43 +08:00
1 parent 25978bde8e
commit 96eca59afc
4 files changed
+69 -11

No files matched your search

+2 -2
View File
@@ -4,8 +4,8 @@ import { getProxies } from "../services/api";
import ProxyGroup from "../components/proxy-group";
const ProxyPage = () => {
const { data } = useSWR("getProxies", getProxies);
const { groups = [] } = data ?? {};
const { data: proxiesData } = useSWR("getProxies", getProxies);
const { groups = [] } = proxiesData ?? {};
return (
<Box sx={{ width: 0.9, maxWidth: "850px", mx: "auto", mb: 2 }}>