mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
added Music releases tab
This commit is contained in:
parent
972e698528
commit
777bed9135
@ -16,7 +16,8 @@ import "./index.less"
|
||||
const TabsComponent = {
|
||||
"posts": PostsTab,
|
||||
"followers": FollowersTab,
|
||||
"details": DetailsTab
|
||||
"details": DetailsTab,
|
||||
"music": DetailsTab,
|
||||
}
|
||||
|
||||
const TabRender = React.memo((props, ref) => {
|
||||
@ -75,6 +76,8 @@ export default class Account extends React.Component {
|
||||
actionsRef = React.createRef()
|
||||
|
||||
componentDidMount = async () => {
|
||||
app.layout.toggleCenteredContent(false)
|
||||
|
||||
const token = await SessionModel.getDecodedToken()
|
||||
const location = window.app.history.location
|
||||
const query = new URLSearchParams(location.search)
|
||||
@ -271,6 +274,15 @@ export default class Account extends React.Component {
|
||||
</Translation>
|
||||
</antd.Menu.Item>
|
||||
|
||||
<antd.Menu.Item
|
||||
key="music"
|
||||
icon={<Icons.MdAlbum />}
|
||||
>
|
||||
<Translation>
|
||||
{t => t("Music")}
|
||||
</Translation>
|
||||
</antd.Menu.Item>
|
||||
|
||||
<antd.Menu.Item
|
||||
key="followers"
|
||||
icon={<Icons.Users />}
|
||||
|
Loading…
x
Reference in New Issue
Block a user