File tree 9 files changed +19
-1
lines changed
webpack/assets/javascripts/react_app/components
9 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -206,6 +206,9 @@ Editor.propTypes = {
206
206
name : PropTypes . string ,
207
207
title : PropTypes . string ,
208
208
renderPath : PropTypes . string ,
209
+ hosts : PropTypes . array ,
210
+ locked : PropTypes . bool ,
211
+ type : PropTypes . string ,
209
212
} ) . isRequired ,
210
213
selectedHost : PropTypes . shape ( {
211
214
id : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . number ] ) ,
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ FactChart.propTypes = {
112
112
id : PropTypes . number . isRequired ,
113
113
title : PropTypes . string ,
114
114
search : PropTypes . string ,
115
+ path : PropTypes . string ,
115
116
} ) . isRequired ,
116
117
factChart : PropTypes . shape ( {
117
118
chartData : PropTypes . arrayOf ( PropTypes . array ) ,
Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ Layout.propTypes = {
163
163
} )
164
164
) ,
165
165
data : PropTypes . shape ( {
166
+ brand : PropTypes . string ,
166
167
menu : PropTypes . arrayOf (
167
168
PropTypes . shape ( {
168
169
type : PropTypes . string . isRequired ,
@@ -182,7 +183,7 @@ Layout.propTypes = {
182
183
) ,
183
184
} ) ,
184
185
orgs : PropTypes . shape ( {
185
- current_organization : PropTypes . string ,
186
+ current_org : PropTypes . string ,
186
187
available_organizations : PropTypes . arrayOf (
187
188
PropTypes . shape ( {
188
189
href : PropTypes . string . isRequired ,
Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ Pagination.propTypes = {
59
59
perPageOptions : PropTypes . arrayOf ( PropTypes . number ) ,
60
60
itemCount : PropTypes . number ,
61
61
perPage : PropTypes . number ,
62
+ classNames : PropTypes . shape ( {
63
+ pagination_classes : PropTypes . string ,
64
+ } ) ,
62
65
} ) . isRequired ,
63
66
onPageSet : PropTypes . func ,
64
67
onPerPageSelect : PropTypes . func ,
Original file line number Diff line number Diff line change @@ -59,6 +59,8 @@ const TemplateInput = ({
59
59
60
60
TemplateInput . propTypes = {
61
61
data : PropTypes . shape ( {
62
+ id : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . number ] ) ,
63
+ type : PropTypes . string ,
62
64
url : PropTypes . string ,
63
65
resourceType : PropTypes . string ,
64
66
initialError : PropTypes . string ,
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ class DateInput extends React.Component {
15
15
componentDidUpdate = prevProps => {
16
16
const newDate = this . props . date ;
17
17
if ( prevProps . date !== newDate ) {
18
+ // TODO: Fix #27114 - stop violating react/no-did-update-set-state
19
+ // eslint-disable-next-line react/no-did-update-set-state
18
20
this . setState ( {
19
21
date : newDate ,
20
22
typeOfDateInput : this . props . typeOfDateInput ,
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ class MonthView extends React.Component {
21
21
componentDidUpdate = prevProps => {
22
22
const newDate = this . props . date ;
23
23
if ( prevProps . date !== newDate ) {
24
+ // TODO: Fix #27114 - stop violating react/no-did-update-set-state
25
+ // eslint-disable-next-line react/no-did-update-set-state
24
26
this . setState ( {
25
27
selectedDate : newDate ,
26
28
date : newDate ,
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ class PickTimeClock extends React.Component {
10
10
componentDidUpdate = prevProps => {
11
11
const newTime = this . props . time ;
12
12
if ( prevProps . time !== newTime ) {
13
+ // TODO: Fix #27114 - stop violating react/no-did-update-set-state
14
+ // eslint-disable-next-line react/no-did-update-set-state
13
15
this . setState ( { ampm : newTime . getHours ( ) >= 12 ? 'PM' : 'AM' } ) ;
14
16
}
15
17
} ;
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ class TimeInput extends React.Component {
13
13
componentDidUpdate = prevProps => {
14
14
const { time : nextTime , isTimeTableOpen } = this . props ;
15
15
if ( prevProps . time !== nextTime ) {
16
+ // TODO: Fix #27114 - stop violating react/no-did-update-set-state
17
+ // eslint-disable-next-line react/no-did-update-set-state
16
18
this . setState ( {
17
19
isTimeTableOpen,
18
20
} ) ;
You can’t perform that action at this time.
0 commit comments