Add a primary button with a Plus icon to the SidebarMenu and adjust styles for better layout
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
margin-bottom: 16px;
|
||||
padding: 0;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.tabsContainer {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React, { useState, useEffect } from "react";
|
||||
import { Input, Skeleton } from "antd";
|
||||
import { SearchOutlined } from "@ant-design/icons";
|
||||
import { Input, Skeleton, Button } from "antd";
|
||||
import { SearchOutlined, PlusOutlined } from "@ant-design/icons";
|
||||
import WechatFriends from "./WechatFriends";
|
||||
import MessageList from "./MessageList/index";
|
||||
import FriendsCircle from "./FriendsCicle";
|
||||
@@ -126,6 +126,7 @@ const SidebarMenu: React.FC<SidebarMenuProps> = ({ loading = false }) => {
|
||||
onClear={handleClearSearch}
|
||||
allowClear
|
||||
/>
|
||||
<Button type="primary" icon={<PlusOutlined />}></Button>
|
||||
</div>
|
||||
|
||||
{/* 标签页切换 */}
|
||||
|
||||
Reference in New Issue
Block a user