mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-23 04:09:49 +00:00
Fix Bug
This commit is contained in:
@@ -682,6 +682,13 @@ export default function ProviderDetailPage() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{providerInfo.deprecated && (
|
||||
<div className="flex items-start gap-2 px-3 py-2 rounded-lg bg-black/[0.02] dark:bg-white/[0.02] border border-black/[0.05] dark:border-white/[0.05]">
|
||||
<span className="material-symbols-outlined text-[16px] text-text-muted mt-0.5 shrink-0">info</span>
|
||||
<p className="text-xs text-text-muted leading-relaxed">{providerInfo.deprecationNotice}</p>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{isCompatible && providerNode && (
|
||||
<Card>
|
||||
<div className="flex items-center justify-between mb-4">
|
||||
|
||||
@@ -489,7 +489,6 @@ export default function ProvidersPage() {
|
||||
|
||||
function ProviderCard({ providerId, provider, stats, authType, onToggle }) {
|
||||
const { connected, error, errorCode, errorTime, allDisabled } = stats;
|
||||
const isDeprecated = !!provider.deprecated;
|
||||
|
||||
const dotColors = {
|
||||
free: "bg-green-500",
|
||||
@@ -572,12 +571,6 @@ function ProviderCard({ providerId, provider, stats, authType, onToggle }) {
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
{isDeprecated && (
|
||||
<div className="mt-2 flex items-start gap-1.5 px-2 py-1.5 rounded-md bg-amber-500/10 border border-amber-500/20 text-amber-600 dark:text-amber-400">
|
||||
<span className="material-symbols-outlined text-[14px] mt-0.5 shrink-0">warning</span>
|
||||
<p className="text-[10px] leading-snug">{provider.deprecationNotice}</p>
|
||||
</div>
|
||||
)}
|
||||
</Card>
|
||||
</Link>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user