mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-21 17:52:25 +08:00
fix(home-ui): align signal icon delay states with formatDelay (#6249)
* fix(ui): align signal icon delay states with formatDelay * docs: changelog.md
This commit is contained in:
@@ -89,9 +89,13 @@ function getSignalIcon(delay: number): {
|
||||
text: string;
|
||||
color: string;
|
||||
} {
|
||||
if (delay < 0)
|
||||
if (delay === -2)
|
||||
return { icon: <SignalNone />, text: "测试中", color: "text.secondary" };
|
||||
if (delay === -1)
|
||||
return { icon: <SignalNone />, text: "未测试", color: "text.secondary" };
|
||||
if (delay >= 10000)
|
||||
if (delay > 1e5)
|
||||
return { icon: <SignalError />, text: "错误", color: "error.main" };
|
||||
if (delay === 0 || delay >= 10000)
|
||||
return { icon: <SignalError />, text: "超时", color: "error.main" };
|
||||
if (delay >= 500)
|
||||
return { icon: <SignalWeak />, text: "延迟较高", color: "error.main" };
|
||||
|
||||
Reference in New Issue
Block a user