mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +08:00
hide the provider when not available
This commit is contained in:
parent
c17a48eb1d
commit
e4735310e5
@ -34,6 +34,10 @@ const ProxyProvider: React.FC = () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!providers.length) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SettingCard>
|
<SettingCard>
|
||||||
<SettingItem title="代理集合" divider>
|
<SettingItem title="代理集合" divider>
|
||||||
|
|||||||
@ -29,6 +29,10 @@ const RuleProvider: React.FC = () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!providers.length) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SettingCard>
|
<SettingCard>
|
||||||
<SettingItem title="规则集合" divider>
|
<SettingItem title="规则集合" divider>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user