sync: soul-admin 页面 | 原因: 前端页面修改

This commit is contained in:
卡若
2026-03-08 17:16:28 +08:00
parent 9472e13ce4
commit 5b125f8526

View File

@@ -28,7 +28,7 @@ const typeIcons: Record<string, string> = { partner: '⭐', investor: '👥', me
interface Props {
onSwitchTab?: (tabId: string) => void
onOpenCKB?: () => void
onOpenCKB?: (tab?: string) => void
}
export function CKBStatsTab({ onSwitchTab, onOpenCKB }: Props = {}) {
@@ -158,21 +158,21 @@ export function CKBStatsTab({ onSwitchTab, onOpenCKB }: Props = {}) {
</h3>
<div className="grid grid-cols-2 lg:grid-cols-3 gap-5 mb-6">
<Card className="bg-[#0f2137] border-orange-500/20 cursor-pointer hover:border-orange-500/50 transition-colors" onClick={() => onOpenCKB?.()}>
<Card className="bg-[#0f2137] border-orange-500/20 cursor-pointer hover:border-orange-500/50 transition-colors" onClick={() => onOpenCKB?.('submitted')}>
<CardContent className="p-6">
<p className="text-gray-400 text-sm mb-2">线</p>
<p className="text-3xl font-bold text-white">{isLoading ? '—' : (ckbStats?.ckbTotal ?? 0)}</p>
<p className="text-orange-400/60 text-xs mt-2"> </p>
</CardContent>
</Card>
<Card className="bg-[#0f2137] border-orange-500/20 cursor-pointer hover:border-orange-500/50 transition-colors" onClick={() => onOpenCKB?.()}>
<Card className="bg-[#0f2137] border-orange-500/20 cursor-pointer hover:border-orange-500/50 transition-colors" onClick={() => onOpenCKB?.('contact')}>
<CardContent className="p-6">
<p className="text-gray-400 text-sm mb-2"></p>
<p className="text-3xl font-bold text-white">{isLoading ? '—' : (ckbStats?.withContact ?? 0)}</p>
<p className="text-orange-400/60 text-xs mt-2"> </p>
</CardContent>
</Card>
<Card className="bg-[#0f2137] border-orange-500/20 cursor-pointer hover:border-orange-500/50 transition-colors" onClick={() => onOpenCKB?.()}>
<Card className="bg-[#0f2137] border-orange-500/20 cursor-pointer hover:border-orange-500/50 transition-colors" onClick={() => onOpenCKB?.('test')}>
<CardContent className="p-6">
<p className="text-gray-400 text-sm mb-2">AI </p>
<p className="text-xl font-bold text-orange-400"> </p>