Add IDs to the Admin Sidebar Section (#5909)

* Add IDs to the Admin Sidebar Section

Under Testing

* Update admin_sidebar_section.jsx

* Update admin_sidebar_section.jsx

* Update admin_sidebar_section.jsx

* Update admin_sidebar_section.jsx
This commit is contained in:
doh5
2017-04-03 21:17:21 +09:00
committed by Joram Wilander
parent 8e70e40c30
commit 06e09a0553

View File

@@ -4,6 +4,7 @@
import React from 'react';
import {Link} from 'react-router/es6';
import * as Utils from 'utils/utils.jsx';
export default class AdminSidebarSection extends React.Component {
static get propTypes() {
@@ -62,6 +63,7 @@ export default class AdminSidebarSection extends React.Component {
let sidebarItem = (
<Link
id={Utils.createSafeId(this.props.name)}
className={`${className}-title`}
activeClassName={`${className}-title ${className}-title--active`}
onlyActiveOnIndex={this.props.onlyActiveOnIndex}