feat: sort groups

This commit is contained in:
GyDi committed 2021-12-12 01:02:14 +08:00
1 parent eddf10e740
commit 1e2e6ca8a6
2 files changed
+9 -5

No files matched your search

+7 -5
View File
@@ -21,11 +21,13 @@ const ProxyPage = () => {
Proxy Groups
</Typography>
<List sx={{ borderRadius: 1, boxShadow: 2 }}>
{groups.map((group) => (
<ProxyGroup key={group.name} group={group} />
))}
</List>
{groups.length > 0 && (
<List sx={{ borderRadius: 1, boxShadow: 2 }}>
{groups.map((group) => (
<ProxyGroup key={group.name} group={group} />
))}
</List>
)}
</Box>
);
};