Add top link to sidebar, fix js error (#1508)

- Add a link to Top in the sidebar
- Fix a console error caused by having duplicate react keys
This commit is contained in:
Risha Mars 2018-08-22 18:19:17 -07:00 committed by GitHub
parent 3fde755a8f
commit 63be9b1a3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -162,6 +162,13 @@ class Sidebar extends React.Component {
</PrefixedLink>
</Menu.Item>
<Menu.Item className="sidebar-menu-item" key="/top">
<PrefixedLink to="/top">
<Icon type="caret-up" />
<span>Top</span>
</PrefixedLink>
</Menu.Item>
{
_.map(_.take(this.state.namespaces, this.state.maxNsItemsToShow), ns => {
return (

View File

@ -191,7 +191,7 @@ const renderMetaLabels = (title, labels) => {
columns={srcDstMetaColumns}
dataSource={data}
size="small"
rowKey="labelVal"
rowKey={row => title.replace(" ", "_") + row.labelName + row.labelVal}
bordered={false}
showHeader={false}
pagination={false} />