@@ -78,14 +78,14 @@ class TimeInput extends React.Component {
78
78
autoOk,
79
79
cancelLabel,
80
80
classes,
81
- defaultValue, // eslint-disable-line
81
+ defaultValue,
82
82
disabled : disabledProp ,
83
- initialTime, //eslint-disable-line
84
- placeholder, // eslint-disable-line
83
+ initialTime,
84
+ placeholder,
85
85
mode,
86
86
okLabel,
87
- onChange, // eslint-disable-line
88
- value : valueProp , // eslint-disable-line
87
+ onChange,
88
+ value : valueProp ,
89
89
...other
90
90
} = this . props
91
91
@@ -94,34 +94,34 @@ class TimeInput extends React.Component {
94
94
const { muiFormControl } = this . context
95
95
const disabled = disabledProp || ( muiFormControl != null && muiFormControl . disabled )
96
96
97
- return [
98
- < Input
99
- { ...other }
100
- disabled = { disabled }
101
- onClick = { ! disabled ? this . showDialog : null }
102
- value = { this . getFormattedValue ( ) }
103
- readOnly
104
- key = 'TimeInput-input'
105
- /> ,
106
- < Dialog
107
- maxWidth = 'xs'
108
- open = { this . state . open }
109
- key = 'TimeInput-dialog'
110
- onClose = { this . handleCancel }
111
- >
112
- < TimePicker
113
- mode = { mode }
114
- value = { newValue }
115
- onChange = { this . handleChange }
116
- onMinutesSelected = { autoOk ? this . handleOk : null }
117
- classes = { { header : classes . header , body : classes . body } }
97
+ return (
98
+ < React . Fragment >
99
+ < Input
100
+ { ...other }
101
+ disabled = { disabled }
102
+ onClick = { ! disabled ? this . showDialog : null }
103
+ value = { this . getFormattedValue ( ) }
104
+ readOnly
118
105
/>
119
- < DialogActions >
120
- < Button onClick = { this . handleCancel } color = 'primary' > { cancelLabel } </ Button >
121
- < Button onClick = { this . handleOk } color = 'primary' > { okLabel } </ Button >
122
- </ DialogActions >
123
- </ Dialog >
124
- ]
106
+ < Dialog
107
+ maxWidth = 'xs'
108
+ open = { this . state . open }
109
+ onClose = { this . handleCancel }
110
+ >
111
+ < TimePicker
112
+ mode = { mode }
113
+ value = { newValue }
114
+ onChange = { this . handleChange }
115
+ onMinutesSelected = { autoOk ? this . handleOk : null }
116
+ classes = { { header : classes . header , body : classes . body } }
117
+ />
118
+ < DialogActions >
119
+ < Button onClick = { this . handleCancel } color = 'primary' > { cancelLabel } </ Button >
120
+ < Button onClick = { this . handleOk } color = 'primary' > { okLabel } </ Button >
121
+ </ DialogActions >
122
+ </ Dialog >
123
+ </ React . Fragment >
124
+ )
125
125
}
126
126
}
127
127
0 commit comments