Skip to content
Snippets Groups Projects
Commit 96d79f91 authored by Chris Lawton's avatar Chris Lawton Committed by Todd Dembrey
Browse files

adds id to listing headers

parent 9db5f2bd
No related branches found
No related tags found
No related merge requests found
...@@ -3,8 +3,9 @@ import PropTypes from 'prop-types'; ...@@ -3,8 +3,9 @@ import PropTypes from 'prop-types';
export default class ListingHeading extends React.Component { export default class ListingHeading extends React.Component {
render() { render() {
const parsedTitle = this.props.title.split(' ').join('-').toLowerCase();
return ( return (
<li className="listing__item listing__item--heading"> <li className="listing__item listing__item--heading" id={parsedTitle}>
<h5 className="listing__title">{this.props.title}</h5> <h5 className="listing__title">{this.props.title}</h5>
<span className="listing__count">{this.props.count}</span> <span className="listing__count">{this.props.count}</span>
</li> </li>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment