thinkful-ui
Advanced tools
Comparing version 0.2.12 to 0.2.13
{ | ||
"name": "thinkful-ui", | ||
"version": "0.2.12", | ||
"version": "0.2.13", | ||
"description": "Shared navigation and UI resources for Thinkful.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.es6", |
@@ -7,3 +7,3 @@ const React = require('react'); | ||
<svg width="28px" height="28px" viewBox="0 0 28 28" version="1.1" xmlns="http://www.w3.org/2000/svg" {...this.props}> | ||
<g id="masthead" stroke="none" stroke-width="1" fill="#fff" fill-rule="evenodd"> | ||
<g id="masthead" stroke="none" strokeWidth="1" fill="#fff" fillRule="evenodd"> | ||
<path d="M9,20 L12,20 L12,8.02439022 L3,8.02439022 L3,3 L20,3 L20,0 L0,0 L0,11 L9,11 L9,20 L9,20 Z" id="Shape"></path> | ||
@@ -17,2 +17,2 @@ <path d="M17,8.02439022 L17,25 L9,25 L9,28 L20,28 L20,11 L28,11 L28,0 L25,0 L25,8.02439022 L17,8.02439022 L17,8.02439022 Z" id="Shape"></path> | ||
module.exports = {Masthead}; | ||
module.exports = {Masthead}; |
@@ -1,4 +0,4 @@ | ||
const _ = require('lodash'); | ||
const cx = require('classnames') | ||
const cx = require('classnames'); | ||
const React = require('react'); | ||
const uniqueId = require('lodash/utility/uniqueId'); | ||
@@ -91,4 +91,4 @@ // TUI Components | ||
{linkSet.main.map( | ||
(link, key) => <li> | ||
<NavLink key={key} {...link}/></li>)} | ||
(link) => <li key={uniqueId(link)}> | ||
<NavLink {...link}/></li>)} | ||
</ul> | ||
@@ -98,7 +98,7 @@ <ul onMouseEnter={this.handleMouseEnter.bind(this)} | ||
{linkSet.main.map( | ||
(link, key) => <li> | ||
<NavLink key={key} className="app-nav-link__mobile-only" {...link}/></li>)} | ||
(link) => <li key={uniqueId(link)}> | ||
<NavLink className="app-nav-link__mobile-only" {...link}/></li>)} | ||
{linkSet.menu.map( | ||
(link, key) => <li> | ||
<NavLink key={key} className="app-nav-link__in-menu" {...link}/></li>)} | ||
(link) => <li key={uniqueId(link)}> | ||
<NavLink className="app-nav-link__in-menu" {...link}/></li>)} | ||
</ul> | ||
@@ -105,0 +105,0 @@ {user && |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54627
28
461