improve menu items

This commit is contained in:
SrGooglo 2023-01-05 16:59:21 +00:00
parent 0af676debc
commit 5294b5edf2

View File

@ -2,6 +2,7 @@ import React from "react"
import * as antd from "antd" import * as antd from "antd"
import classnames from "classnames" import classnames from "classnames"
import Loadable from "react-loadable" import Loadable from "react-loadable"
import { Translation } from "react-i18next"
import { Icons, createIconRender } from "components/Icons" import { Icons, createIconRender } from "components/Icons"
import { Image, Skeleton, FollowButton } from "components" import { Image, Skeleton, FollowButton } from "components"
@ -280,13 +281,14 @@ export default class Account extends React.Component {
</div> </div>
</div> </div>
{!this.state.isSelf && <div> <div>
<FollowButton <FollowButton
count={this.state.followers.length} count={this.state.followers.length}
onClick={this.onClickFollow} onClick={this.onClickFollow}
followed={this.state.isFollowed} followed={this.state.isFollowed}
self={this.state.isSelf}
/> />
</div>} </div>
</div> </div>
<div className="description"> <div className="description">
@ -312,16 +314,31 @@ export default class Account extends React.Component {
selectedKeys={[this.state.tabActiveKey]} selectedKeys={[this.state.tabActiveKey]}
onClick={(e) => this.handlePageTransition(e.key)} onClick={(e) => this.handlePageTransition(e.key)}
> >
<antd.Menu.Item key="posts"> <antd.Menu.Item
Posts key="posts"
icon={<Icons.BookOpen />}
>
<Translation>
{t => t("Posts")}
</Translation>
</antd.Menu.Item> </antd.Menu.Item>
<antd.Menu.Item key="followers"> <antd.Menu.Item
Followers key="followers"
icon={<Icons.Users />}
>
<Translation>
{t => t("Followers")}
</Translation>
</antd.Menu.Item> </antd.Menu.Item>
<antd.Menu.Item key="details"> <antd.Menu.Item
Details key="details"
icon={<Icons.Info />}
>
<Translation>
{t => t("Details")}
</Translation>
</antd.Menu.Item> </antd.Menu.Item>
</antd.Menu> </antd.Menu>
</div> </div>