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
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
8e70e40c30
Коммит
06e09a0553
@@ -4,6 +4,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import {Link} from 'react-router/es6';
|
import {Link} from 'react-router/es6';
|
||||||
|
import * as Utils from 'utils/utils.jsx';
|
||||||
|
|
||||||
export default class AdminSidebarSection extends React.Component {
|
export default class AdminSidebarSection extends React.Component {
|
||||||
static get propTypes() {
|
static get propTypes() {
|
||||||
@@ -62,6 +63,7 @@ export default class AdminSidebarSection extends React.Component {
|
|||||||
|
|
||||||
let sidebarItem = (
|
let sidebarItem = (
|
||||||
<Link
|
<Link
|
||||||
|
id={Utils.createSafeId(this.props.name)}
|
||||||
className={`${className}-title`}
|
className={`${className}-title`}
|
||||||
activeClassName={`${className}-title ${className}-title--active`}
|
activeClassName={`${className}-title ${className}-title--active`}
|
||||||
onlyActiveOnIndex={this.props.onlyActiveOnIndex}
|
onlyActiveOnIndex={this.props.onlyActiveOnIndex}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user