This commit is contained in:
decolua
2026-03-27 11:45:54 +07:00
parent fcc8320753
commit bf99c600f1
5 changed files with 79 additions and 9 deletions
@@ -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>
);