feat: record selected proxy

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

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 }}>