Skip to content

Commit

Permalink
fix: proxy global showType
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzgydi committed Feb 26, 2022
1 parent d05d8d6 commit e896077
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/proxy/proxy-global.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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("");

Expand Down Expand Up @@ -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 }}
/>
Expand Down

0 comments on commit e896077

Please sign in to comment.