File tree Expand file tree Collapse file tree 5 files changed +16
-14
lines changed Expand file tree Collapse file tree 5 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ export class Col extends React.Component {
74
74
}
75
75
76
76
if ( hide ) {
77
- classes . push ( "hidden" ) ;
77
+ classesAr . push ( "hidden" )
78
78
}
79
79
80
80
let classes = xclass ( rest . className , ...classesAr )
Original file line number Diff line number Diff line change @@ -92,17 +92,17 @@ export default class ObjectModel extends Component {
92
92
let isDeprecated = isOAS3 ( ) && value . get ( "deprecated" )
93
93
let isRequired = List . isList ( requiredProperties ) && requiredProperties . contains ( key )
94
94
95
- let classNames = [ "property-row" ] ;
95
+ let classNames = [ "property-row" ]
96
96
97
97
if ( isDeprecated ) {
98
- classNames . push ( "deprecated" ) ;
98
+ classNames . push ( "deprecated" )
99
99
}
100
100
101
101
if ( isRequired ) {
102
- classNames . push ( "required" ) ;
102
+ classNames . push ( "required" )
103
103
}
104
104
105
- return ( < tr key = { key } className = { classNames . join ( ' ' ) } >
105
+ return ( < tr key = { key } className = { classNames . join ( " " ) } >
106
106
< td >
107
107
{ key } { isRequired && < span className = "star" > *</ span > }
108
108
</ td >
Original file line number Diff line number Diff line change @@ -23,16 +23,16 @@ export default class FilterContainer extends React.Component {
23
23
const isFailed = specSelectors . loadingStatus ( ) === "failed"
24
24
const filter = layoutSelectors . currentFilter ( )
25
25
26
- const classNames = [ "operation-filter-input" ] ;
27
- if ( isFailed ) classNames . push ( "failed" ) ;
28
- if ( isLoading ) classNames . push ( "loading" ) ;
26
+ const classNames = [ "operation-filter-input" ]
27
+ if ( isFailed ) classNames . push ( "failed" )
28
+ if ( isLoading ) classNames . push ( "loading" )
29
29
30
30
return (
31
31
< div >
32
32
{ filter === null || filter === false ? null :
33
33
< div className = "filter-container" >
34
34
< Col className = "filter wrapper" mobile = { 12 } >
35
- < input className = { classNames . join ( ' ' ) } placeholder = "Filter by tag" type = "text"
35
+ < input className = { classNames . join ( " " ) } placeholder = "Filter by tag" type = "text"
36
36
onChange = { this . onFilterChange } value = { filter === true || filter === "true" ? "" : filter }
37
37
disabled = { isLoading } />
38
38
</ Col >
Original file line number Diff line number Diff line change @@ -76,7 +76,9 @@ const createClass = component => class extends Component {
76
76
}
77
77
}
78
78
79
- const Fallback = ( { name } ) => < div className = "fallback" > 😱 < i > Could not render { name === "t" ? "this component" : name } , see the console.</ i > </ div >
79
+ const Fallback = ( {
80
+ name // eslint-disable-line react/prop-types
81
+ } ) => < div className = "fallback" > 😱 < i > Could not render { name === "t" ? "this component" : name } , see the console.</ i > </ div >
80
82
81
83
const wrapRender = ( component ) => {
82
84
const isStateless = component => ! ( component . prototype && component . prototype . isReactComponent )
Original file line number Diff line number Diff line change @@ -104,9 +104,9 @@ export default class Topbar extends React.Component {
104
104
let isLoading = specSelectors . loadingStatus ( ) === "loading"
105
105
let isFailed = specSelectors . loadingStatus ( ) === "failed"
106
106
107
- const classNames = [ "download-url-input" ] ;
108
- if ( isFailed ) classNames . push ( "failed" ) ;
109
- if ( isLoading ) classNames . push ( "loading" ) ;
107
+ const classNames = [ "download-url-input" ]
108
+ if ( isFailed ) classNames . push ( "failed" )
109
+ if ( isLoading ) classNames . push ( "loading" )
110
110
111
111
const { urls } = getConfigs ( )
112
112
let control = [ ]
@@ -128,7 +128,7 @@ export default class Topbar extends React.Component {
128
128
}
129
129
else {
130
130
formOnSubmit = this . downloadUrl
131
- control . push ( < input className = { classNames . join ( ' ' ) } type = "text" onChange = { this . onUrlChange } value = { this . state . url } disabled = { isLoading } /> )
131
+ control . push ( < input className = { classNames . join ( " " ) } type = "text" onChange = { this . onUrlChange } value = { this . state . url } disabled = { isLoading } /> )
132
132
control . push ( < Button className = "download-url-button" onClick = { this . downloadUrl } > Explore</ Button > )
133
133
}
134
134
You can’t perform that action at this time.
0 commit comments