mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
update post layout
This commit is contained in:
parent
f385ed91b2
commit
2af3d7aada
@ -83,24 +83,35 @@ export default class Dashboard extends React.Component {
|
||||
</div>
|
||||
|
||||
<antd.Menu
|
||||
mode="inline"
|
||||
mode="vertical"
|
||||
selectedKeys={[this.state.activeTab]}
|
||||
activeKey={this.state.activeTab}
|
||||
onClick={({ key }) => this.handleTabChange(key)}
|
||||
>
|
||||
{Object.keys(Tabs).map((key) => {
|
||||
const tab = Tabs[key]
|
||||
{
|
||||
Object.keys(Tabs).map((key) => {
|
||||
const tab = Tabs[key]
|
||||
|
||||
return <antd.Menu.Item
|
||||
key={key}
|
||||
icon={createIconRender(tab.icon)}
|
||||
>
|
||||
{tab.title}
|
||||
</antd.Menu.Item>
|
||||
})}
|
||||
return <antd.Menu.Item
|
||||
key={key}
|
||||
icon={createIconRender(tab.icon)}
|
||||
>
|
||||
{tab.title}
|
||||
</antd.Menu.Item>
|
||||
})
|
||||
}
|
||||
</antd.Menu>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
ref={this.primaryPanelRef}
|
||||
className={classnames("panel", "fade-opacity-active")}
|
||||
>
|
||||
{this.renderActiveTab()}
|
||||
</div>
|
||||
|
||||
<div className="panel right">
|
||||
<div className="card" id="trendings">
|
||||
<div className="header">
|
||||
<h2>
|
||||
@ -108,7 +119,7 @@ export default class Dashboard extends React.Component {
|
||||
<Translation>{(t) => t("Trendings")}</Translation>
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
|
||||
<HashtagTrendings />
|
||||
</div>
|
||||
|
||||
@ -125,17 +136,6 @@ export default class Dashboard extends React.Component {
|
||||
|
||||
<FeaturedEventsAnnouncements />
|
||||
</div>
|
||||
|
||||
<div
|
||||
ref={this.primaryPanelRef}
|
||||
className={classnames("panel", "fade-opacity-active")}
|
||||
>
|
||||
{this.renderActiveTab()}
|
||||
</div>
|
||||
|
||||
<div className="panel right">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user