sync: soul-admin 页面 | 原因: 前端页面修改
This commit is contained in:
@@ -21,6 +21,7 @@ type TabId = (typeof TABS)[number]['id']
|
||||
export function FindPartnerPage() {
|
||||
const [activeTab, setActiveTab] = useState<TabId>('stats')
|
||||
const [showCKBPanel, setShowCKBPanel] = useState(false)
|
||||
const [ckbPanelTab, setCkbPanelTab] = useState<'overview' | 'submitted' | 'contact' | 'config' | 'test' | 'doc'>('overview')
|
||||
|
||||
return (
|
||||
<div className="p-8 w-full">
|
||||
@@ -45,7 +46,7 @@ export function FindPartnerPage() {
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
{showCKBPanel && <CKBConfigPanel />}
|
||||
{showCKBPanel && <CKBConfigPanel initialTab={ckbPanelTab} />}
|
||||
|
||||
<div className="flex flex-wrap gap-1 mb-6 bg-[#0f2137] rounded-lg p-1 border border-gray-700/50">
|
||||
{TABS.map((tab) => {
|
||||
@@ -68,7 +69,15 @@ export function FindPartnerPage() {
|
||||
})}
|
||||
</div>
|
||||
|
||||
{activeTab === 'stats' && <CKBStatsTab onSwitchTab={(id) => setActiveTab(id as TabId)} onOpenCKB={() => setShowCKBPanel(true)} />}
|
||||
{activeTab === 'stats' && (
|
||||
<CKBStatsTab
|
||||
onSwitchTab={(id) => setActiveTab(id as TabId)}
|
||||
onOpenCKB={(tab) => {
|
||||
setCkbPanelTab((tab as typeof ckbPanelTab) || 'overview')
|
||||
setShowCKBPanel(true)
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
{activeTab === 'partner' && <FindPartnerTab />}
|
||||
{activeTab === 'resource' && <ResourceDockingTab />}
|
||||
{activeTab === 'mentor' && <MentorTab />}
|
||||
|
||||
Reference in New Issue
Block a user