Let to Const
This commit is contained in:
parent
db70e17a67
commit
e49e72d250
|
@ -62,7 +62,7 @@ export default class TabsOptions extends Component {
|
||||||
{
|
{
|
||||||
tabs.map((object, i) => {
|
tabs.map((object, i) => {
|
||||||
// if the window pathname is the same or similar to the tab objects name, set the active toggle
|
// if the window pathname is the same or similar to the tab objects name, set the active toggle
|
||||||
let activeOrNot = (window.location.pathname === object.name || window.location.pathname.substring(1) === object.name) ? 'active' : '';
|
const activeOrNot = (window.location.pathname === object.name || window.location.pathname.substring(1) === object.name) ? 'active' : '';
|
||||||
return (
|
return (
|
||||||
<li className={`nav-item ${activeOrNot}`}
|
<li className={`nav-item ${activeOrNot}`}
|
||||||
key={i} onClick={this.tabClick(i)}>
|
key={i} onClick={this.tabClick(i)}>
|
||||||
|
|
Loading…
Reference in New Issue