mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-18 14:07:31 +00:00
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) => {
|
||||
// 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 (
|
||||
<li className={`nav-item ${activeOrNot}`}
|
||||
key={i} onClick={this.tabClick(i)}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user