From 5294b5edf27891fb5356a90cac4f0428320b5acc Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Thu, 5 Jan 2023 16:59:21 +0000 Subject: [PATCH] improve menu items --- packages/app/src/pages/account/index.jsx | 33 ++++++++++++++++++------ 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/packages/app/src/pages/account/index.jsx b/packages/app/src/pages/account/index.jsx index d2b863f2..af06042e 100755 --- a/packages/app/src/pages/account/index.jsx +++ b/packages/app/src/pages/account/index.jsx @@ -2,6 +2,7 @@ import React from "react" import * as antd from "antd" import classnames from "classnames" import Loadable from "react-loadable" +import { Translation } from "react-i18next" import { Icons, createIconRender } from "components/Icons" import { Image, Skeleton, FollowButton } from "components" @@ -280,13 +281,14 @@ export default class Account extends React.Component { - {!this.state.isSelf &&
+
-
} +
@@ -312,16 +314,31 @@ export default class Account extends React.Component { selectedKeys={[this.state.tabActiveKey]} onClick={(e) => this.handlePageTransition(e.key)} > - - Posts + } + > + + {t => t("Posts")} + - - Followers + } + > + + {t => t("Followers")} + - - Details + } + > + + {t => t("Details")} +