File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export default class App extends Component {
77
77
<td>Style applied to each input.</td>
78
78
</tr >
79
79
<tr >
80
- <td>inputFocusStyle </td>
80
+ <td>focusStyle </td>
81
81
<td>style (object)</td>
82
82
<td>false</td>
83
83
<td>none</td>
@@ -91,7 +91,7 @@ export default class App extends Component {
91
91
<td>Disables all the inputs.</td>
92
92
</tr >
93
93
<tr >
94
- <td>inputDisabledStyle </td>
94
+ <td>disabledStyle </td>
95
95
<td>style (object)</td>
96
96
<td>false</td>
97
97
<td>none</td>
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ type Props = {
13
13
separator ?: Object ,
14
14
containerStyle ?: Object ,
15
15
inputStyle ?: Object ,
16
- inputFocusStyle ?: Object ,
16
+ focusStyle ?: Object ,
17
17
disabled ?: boolean ,
18
- inputDisabledStyle ?: Object ,
18
+ disabledStyle ?: Object ,
19
19
} ;
20
20
21
21
type State = {
@@ -56,8 +56,8 @@ class SingleOtpInput extends PureComponent<*> {
56
56
inputStyle,
57
57
focus,
58
58
disabled,
59
- inputFocusStyle ,
60
- inputDisabledStyle ,
59
+ focusStyle ,
60
+ disabledStyle ,
61
61
...rest
62
62
} = this . props ;
63
63
@@ -67,8 +67,8 @@ class SingleOtpInput extends PureComponent<*> {
67
67
style = { Object . assign (
68
68
{ width : '1em' } ,
69
69
inputStyle ,
70
- focus && inputFocusStyle ,
71
- disabled && inputDisabledStyle
70
+ focus && focusStyle ,
71
+ disabled && disabledStyle
72
72
) }
73
73
type = "tel"
74
74
maxLength = "1"
@@ -195,10 +195,10 @@ class OtpInput extends Component<Props, State> {
195
195
const {
196
196
numInputs,
197
197
inputStyle,
198
- inputFocusStyle ,
198
+ focusStyle ,
199
199
separator,
200
200
disabled,
201
- inputDisabledStyle ,
201
+ disabledStyle ,
202
202
} = this . props ;
203
203
const inputs = [ ] ;
204
204
@@ -219,10 +219,10 @@ class OtpInput extends Component<Props, State> {
219
219
} }
220
220
separator = { separator }
221
221
inputStyle = { inputStyle }
222
- inputFocusStyle = { inputFocusStyle }
222
+ focusStyle = { focusStyle }
223
223
isLastChild = { i === numInputs - 1 }
224
224
disabled = { disabled }
225
- inputDisabledStyle = { inputDisabledStyle }
225
+ disabledStyle = { disabledStyle }
226
226
/>
227
227
) ;
228
228
}
You can’t perform that action at this time.
0 commit comments