fix: group proxies render list is null

This commit is contained in:
GyDi
2022-11-21 22:10:24 +08:00
parent bc8be2460f
commit 346c964419
3 changed files with 12 additions and 6 deletions

View File

@@ -49,7 +49,7 @@ export const ProxyHead = (props: Props) => {
}, [groupName, testUrl, verge?.default_latency_test]);
return (
<Box sx={{ display: "flex", alignItems: "center", ...sx }}>
<Box sx={{ display: "flex", alignItems: "center", gap: 0.5, ...sx }}>
<IconButton
size="small"
color="inherit"
@@ -86,7 +86,7 @@ export const ProxyHead = (props: Props) => {
onHeadState({ sortType: ((sortType + 1) % 3) as ProxySortType })
}
>
{sortType === 0 && <SortRounded />}
{sortType !== 1 && sortType !== 2 && <SortRounded />}
{sortType === 1 && <AccessTimeRounded />}
{sortType === 2 && <SortByAlphaRounded />}
</IconButton>