Skip to content

Commit

Permalink
fixes warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
npretto committed Jan 17, 2019
1 parent cd269df commit 469b2df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import produce from "immer"
import React, { Component } from "react"
import React, { Component, Fragment } from "react"
import { createPathFinder, eucledianDistance } from "./algo/createPathFinder"
import PriorityQueue from "./algo/queues/PriorityQueue"
import "./App.css"
Expand Down Expand Up @@ -297,7 +297,7 @@ class App extends Component {
This looks like : <strong>{algoName}</strong>
</p>
{hasDonePath && (
<fragment>
<Fragment>
<strong> nodes in frontier: </strong>
<table>
<thead>
Expand All @@ -308,14 +308,14 @@ class App extends Component {
</thead>
<tbody>
{pathState.frontier.items.map(({ id, cost }) => (
<tr>
<tr key={id}>
<td>{id}</td>
<td>{Math.round(cost)}</td>
</tr>
))}
</tbody>
</table>
</fragment>
</Fragment>
)}
{/* {hasDonePath && (
<table>
Expand Down

0 comments on commit 469b2df

Please sign in to comment.