Skip to content

Commit

Permalink
fix(remove strip-bom, minor tweaks):
Browse files Browse the repository at this point in the history
  • Loading branch information
landonreed committed Mar 14, 2017
1 parent 35fb863 commit 9cff9c5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
1 change: 0 additions & 1 deletion lib/gtfsplus/actions/gtfsplus.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import JSZip from 'jszip'
import fetch from 'isomorphic-fetch'
import stripBom from 'strip-bom'

import { secureFetch } from '../../common/util/util'
import { getConfigProperty } from '../../common/util/config'
Expand Down
3 changes: 0 additions & 3 deletions lib/gtfsplus/components/GtfsPlusEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ export default class GtfsPlusEditor extends Component {
this.props.onComponentMount(this.props)
}

componentWillReceiveProps (nextProps) {
}

save () {
const zip = new JSZip()

Expand Down
4 changes: 1 addition & 3 deletions lib/gtfsplus/components/GtfsPlusTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ export default class GtfsPlusTable extends Component {
const stopValue = stopEntity
? {'value': stopEntity.stop_id, 'label': stopEntity.stop_name}
: null

return (
<GtfsSearch
feeds={[this.props.feedSource]}
Expand Down Expand Up @@ -264,9 +263,8 @@ export default class GtfsPlusTable extends Component {
: null

const tooltip = validationIssue ? (
<Tooltip>{validationIssue.description}</Tooltip>
<Tooltip id='validation-tooltip'>{validationIssue.description}</Tooltip>
) : null

return (
<td key={field.name}>
{validationIssue
Expand Down
4 changes: 3 additions & 1 deletion lib/gtfsplus/components/GtfsPlusVersionSummary.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,16 @@ export default class GtfsPlusVersionSummary extends Component {
</thead>
<tbody>
{getConfigProperty('modules.gtfsplus.spec').map((table, index) => {
const issueCount = this.validationIssueCount(table.id)
return (
<tr
key={index}
className={issueCount > 0 && 'warning'}
style={{ color: this.isTableIncluded(table.id) === 'Yes' ? 'black' : 'lightGray' }}>
<td>{table.name}</td>
<td>{this.isTableIncluded(table.id)}</td>
<td>{this.tableRecordCount(table.id)}</td>
<td>{this.validationIssueCount(table.id)}</td>
<td>{issueCount}</td>
<td />
</tr>
)
Expand Down

0 comments on commit 9cff9c5

Please sign in to comment.