代码结构优化

This commit is contained in:
宇阳
2024-08-07 13:02:59 +08:00
parent a1c8aac490
commit 1ffc3e4467
5 changed files with 42 additions and 30 deletions

View File

@@ -35,8 +35,10 @@ const CommentManager: React.FC = () => {
getCommentList();
};
const titleSty = "border-stroke dark:border-strokedark [&>.ant-card-head]:border-stroke [&>.ant-card-head]:dark:border-strokedark dark:bg-boxdark [&>.ant-card-body]:pt-2"
return (
<Card title={<Breadcrumb pageName="评论管理" />} className='border-stroke dark:border-strokedark [&>.ant-card-head]:border-stroke [&>.ant-card-head]:dark:border-strokedark dark:bg-boxdark [&>.ant-card-body]:pt-2'>
<Card title={<Breadcrumb pageName="评论管理" />} className={titleSty}>
<Tabs activeKey={info.tab} onChange={handleTabChange}>
<TabPane tab="评论列表" key="list">
{info.loading ? <Spin /> : <List data={info} getCommentList={getCommentList} />}