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 = {
|
const TabsComponent = {
|
||||||
"posts": PostsTab,
|
"posts": PostsTab,
|
||||||
"followers": FollowersTab,
|
"followers": FollowersTab,
|
||||||
"details": DetailsTab
|
"details": DetailsTab,
|
||||||
|
"music": DetailsTab,
|
||||||
}
|
}
|
||||||
|
|
||||||
const TabRender = React.memo((props, ref) => {
|
const TabRender = React.memo((props, ref) => {
|
||||||
@ -75,6 +76,8 @@ export default class Account extends React.Component {
|
|||||||
actionsRef = React.createRef()
|
actionsRef = React.createRef()
|
||||||
|
|
||||||
componentDidMount = async () => {
|
componentDidMount = async () => {
|
||||||
|
app.layout.toggleCenteredContent(false)
|
||||||
|
|
||||||
const token = await SessionModel.getDecodedToken()
|
const token = await SessionModel.getDecodedToken()
|
||||||
const location = window.app.history.location
|
const location = window.app.history.location
|
||||||
const query = new URLSearchParams(location.search)
|
const query = new URLSearchParams(location.search)
|
||||||
@ -271,6 +274,15 @@ export default class Account extends React.Component {
|
|||||||
</Translation>
|
</Translation>
|
||||||
</antd.Menu.Item>
|
</antd.Menu.Item>
|
||||||
|
|
||||||
|
<antd.Menu.Item
|
||||||
|
key="music"
|
||||||
|
icon={<Icons.MdAlbum />}
|
||||||
|
>
|
||||||
|
<Translation>
|
||||||
|
{t => t("Music")}
|
||||||
|
</Translation>
|
||||||
|
</antd.Menu.Item>
|
||||||
|
|
||||||
<antd.Menu.Item
|
<antd.Menu.Item
|
||||||
key="followers"
|
key="followers"
|
||||||
icon={<Icons.Users />}
|
icon={<Icons.Users />}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user