Skip to content

Commit

Permalink
Re-Added Tags
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitha1999 committed Sep 17, 2024
1 parent 03b211b commit 94602e7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/ui/tableOfContents.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ class TableOfContents extends Component {
<div>
{this.props.rules.length > 0 ? (
<div>
<div className={"well well-sm"}>
<h4>Tags</h4>
</div>
<ul className={"list-inline"} id={"tags_list"}>
{this.props.tags.map((tag, i) =>
(<li key={i}
onClick={() =>
window.location.hash = `#/${hashConst.tag}/${tag.ID}`
}>{tag.tagName}</li>),
)}
</ul>
<div className={"well well-sm"}>
<h4>Rules</h4>
</div>
Expand Down

0 comments on commit 94602e7

Please sign in to comment.