Skip to content

Commit b7c0c50

Browse files
fix: Fix issues from PR lint.
1 parent 0fdd8e6 commit b7c0c50

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/manager/components/version/FeedVersionViewer.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ export default class FeedVersionViewer extends Component<Props> {
128128
}
129129

130130
type SelectorProps = {
131+
comparedVersion: FeedVersion,
131132
feedVersionIndex: number,
132133
gtfsPlusValidation: GtfsPlusValidation,
133134
version: FeedVersion,
134-
comparedVersion: FeedVersion,
135135
versionSection: ?string
136136
}
137137

@@ -150,26 +150,26 @@ class VersionSectionSelector extends Component<SelectorProps> {
150150
const text = hasCriticalError
151151
? 'critical error'
152152
: validationSummary.errorCount
153-
const diff = comparedVersion
153+
const diff = comparedVersion
154154
? validationSummary.errorCount - comparedVersion.validationSummary.errorCount
155155
: 0
156156
const diffColor = diff > 0 ? 'danger' : (diff < 0 ? 'success' : 'default')
157-
const diffText = comparedVersion
157+
const diffText = comparedVersion
158158
? diff === 0 ? '=' : ((diff > 0 ? '+' : '') + numeral(diff).format('0a'))
159159
: ''
160160
return (
161161
<span>
162-
<Label bsStyle={color}>
162+
<Label bsStyle={color} htmlFor>
163163
{text}
164164
</Label>
165-
{comparedVersion
166-
? <Label bsStyle={diffColor} style={{paddingLeft: '0.2em', paddingRight: '0.2em'}}>
165+
{comparedVersion
166+
? <Label bsStyle={diffColor} style={{paddingLeft: '0.2em', paddingRight: '0.2em'}} htmlFor>
167167
{diffText}
168-
</Label>
168+
</Label>
169169
: ''
170170
}
171171
</span>
172-
)
172+
)
173173
}
174174

175175
_getGtfsPlusIssueCount = (gtfsPlusValidation: GtfsPlusValidation) => {
@@ -192,7 +192,7 @@ class VersionSectionSelector extends Component<SelectorProps> {
192192
: <Icon type='check' />
193193
return issueCount === null
194194
? <span><Loading small inline /></span>
195-
: <span><Label bsStyle={color}>{text}</Label></span>
195+
: <span><Label bsStyle={color} htmlFor>{text}</Label></span>
196196
}
197197

198198
render () {
@@ -227,7 +227,7 @@ class VersionSectionSelector extends Component<SelectorProps> {
227227
active={this.props.versionSection === 'comments'}>
228228
<ListGroupItem>
229229
<Glyphicon glyph='comment' /> Version comments{' '}
230-
<Label>{version.noteCount}</Label>
230+
<Label htmlFor>{version.noteCount}</Label>
231231
</ListGroupItem>
232232
</LinkContainer>
233233
</ListGroup>

0 commit comments

Comments
 (0)