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

This commit is contained in:
卡若
2026-03-08 10:34:20 +08:00
parent a86cdf0696
commit 3916787765

View File

@@ -1,20 +1,16 @@
import { useState } from 'react'
import { Users, List, Handshake, GraduationCap, UserPlus, BarChart3, BookUser } from 'lucide-react'
import { MatchPoolTab } from './tabs/MatchPoolTab'
import { MatchRecordsTab } from './tabs/MatchRecordsTab'
import { Users, Handshake, GraduationCap, UserPlus, BarChart3 } from 'lucide-react'
import { FindPartnerTab } from './tabs/FindPartnerTab'
import { ResourceDockingTab } from './tabs/ResourceDockingTab'
import { MentorBookingTab } from './tabs/MentorBookingTab'
import { MentorTab } from './tabs/MentorTab'
import { TeamRecruitTab } from './tabs/TeamRecruitTab'
import { CKBStatsTab } from './tabs/CKBStatsTab'
import { MentorsPage } from '@/pages/mentors/MentorsPage'
const TABS = [
{ id: 'stats', label: '找伙伴统计', icon: BarChart3 },
{ id: 'pool', label: '匹配池', icon: Users },
{ id: 'records', label: '匹配记录', icon: List },
{ id: 'stats', label: '数据统计', icon: BarChart3 },
{ id: 'partner', label: '找伙伴', icon: Users },
{ id: 'resource', label: '资源对接', icon: Handshake },
{ id: 'mentor', label: '导师预约', icon: GraduationCap },
{ id: 'mentors-manage', label: '导师管理', icon: BookUser },
{ id: 'team', label: '团队招募', icon: UserPlus },
] as const
@@ -31,7 +27,7 @@ export function FindPartnerPage() {
</h2>
<p className="text-gray-400 mt-1">
/
</p>
</div>
@@ -43,7 +39,7 @@ export function FindPartnerPage() {
key={tab.id}
type="button"
onClick={() => setActiveTab(tab.id)}
className={`flex items-center gap-2 px-4 py-2.5 rounded-md text-sm font-medium transition-all ${
className={`flex items-center gap-2 px-5 py-2.5 rounded-md text-sm font-medium transition-all ${
isActive
? 'bg-[#38bdac] text-white shadow-lg'
: 'text-gray-400 hover:text-white hover:bg-gray-700/50'
@@ -56,17 +52,11 @@ export function FindPartnerPage() {
})}
</div>
{activeTab === 'pool' && <MatchPoolTab />}
{activeTab === 'records' && <MatchRecordsTab />}
{activeTab === 'resource' && <ResourceDockingTab />}
{activeTab === 'mentor' && <MentorBookingTab />}
{activeTab === 'mentors-manage' && (
<div className="-mx-8 -mt-0">
<MentorsPage embedded />
</div>
)}
{activeTab === 'team' && <TeamRecruitTab />}
{activeTab === 'stats' && <CKBStatsTab />}
{activeTab === 'partner' && <FindPartnerTab />}
{activeTab === 'resource' && <ResourceDockingTab />}
{activeTab === 'mentor' && <MentorTab />}
{activeTab === 'team' && <TeamRecruitTab />}
</div>
)
}