fix: proxy global showType

This commit is contained in:
GyDi 2022-02-27 01:33:22 +08:00
parent d05d8d6a9e
commit e89607799a
No known key found for this signature in database
GPG Key ID: 58B15242BA8277A6

View File

@ -28,7 +28,7 @@ const ProxyGlobal = (props: Props) => {
const { mutate } = useSWRConfig();
const [now, setNow] = useState(curProxy || "DIRECT");
const [showType, setShowType] = useState(false);
const [showType, setShowType] = useState(true);
const [showFilter, setShowFilter] = useState(false);
const [filterText, setFilterText] = useState("");
@ -137,6 +137,7 @@ const ProxyGlobal = (props: Props) => {
groupName={groupName}
proxy={filterProxies[index]}
selected={filterProxies[index].name === now}
showType={showType}
onClick={onChangeProxy}
sx={{ py: 0, px: 2 }}
/>