Skip to content

Commit

Permalink
#14 Fixing warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lucianaribeiro committed Sep 5, 2018
1 parent 1333419 commit 8a9d5de
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
3 changes: 1 addition & 2 deletions src/components/structures/dynamicsComponents/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Markdown extends Component {
fetch(file).then((r) => r.text()).then((t) => {
this.setState({ terms: t })
})
}
}

RouterLink(props) {
return (
Expand All @@ -25,7 +25,6 @@ class Markdown extends Component {
}

render() {
console.log(this.props);
const transformImageUri = input =>
/^https?:/.test(input)
? input
Expand Down
4 changes: 2 additions & 2 deletions src/components/structures/dynamicsComponents/navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ class Navbar extends Component {
<ul id="nav-mobile" className="right hide-on-med-and-down">
{
this.props.activities.map(
(activity) => {
(activity, i) => {
return (
<li>
<li key={i}>
<Link to={activity.pathname}>
<span className="white-text name">{activity.link}</span>
</Link>
Expand Down
16 changes: 8 additions & 8 deletions src/components/structures/sidenav.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,20 @@ class Sidenav extends Component {
<div className="divider" />
</li>
<ul className="collapsible">
{dynamics.map(dynamic => {
{dynamics.map((dynamic, i) => {
return (
<li>
<li key={i}>
<div className="collapsible-header">
<div className="dinamica">{dynamic.dynamic}</div>
<div className="dinamica-button">
<i class="material-icons">{this.state.button}</i>
<i className="material-icons">{this.state.button}</i>
</div>
</div>
<div className="collapsible-body">
<ul>
{dynamic.artefacts.map(artefact => {
{dynamic.artefacts.map((artefact, i) => {
return (
<li>
<li key={i}>
<Link
to={artefact.link}
onClick={() => M.AutoInit()}
Expand All @@ -115,14 +115,14 @@ class Sidenav extends Component {
<div className="collapsible-header">
<div className="dinamica">Extras</div>
<div className="dinamica-button">
<i class="material-icons">{this.state.button}</i>
<i className="material-icons">{this.state.button}</i>
</div>
</div>
<div className="collapsible-body">
<ul>
{extras.map(extra => {
{extras.map((extra, i) => {
return (
<li>
<li key={i}>
<Link to={extra.link} onClick={() => M.AutoInit()}>
<div className="artifact">{extra.name}</div>
</Link>
Expand Down

0 comments on commit 8a9d5de

Please sign in to comment.