This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
/* global process */
2
2
3
3
module . exports = ( ( ) => {
4
- const env = process . env . APPENV || "prod " ;
4
+ const env = process . env . APPENV || "dev " ;
5
5
6
6
console . info ( `APPENV: "${ env } "` ) ;
7
7
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ const DateInput = (props) => {
16
16
dateFormat = "MM/dd/yyyy"
17
17
placeholderText = { props . placeholder }
18
18
selected = { props . value }
19
+ disabled = { props . disabled }
19
20
onChange = { props . onChange }
20
21
onBlur = { props . onBlur }
21
22
onCalendarClose = { props . onBlur }
@@ -28,6 +29,7 @@ const DateInput = (props) => {
28
29
DateInput . propTypes = {
29
30
value : PT . string ,
30
31
onChange : PT . func . isRequired ,
32
+ disabled : PT . bool ,
31
33
placeholder : PT . string ,
32
34
onBlur : PT . func ,
33
35
onFocus : PT . func ,
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ function TextInput(props) {
14
14
styleName = { cn ( "TextInput" , props . className , { readonly : props . readonly } ) }
15
15
maxLength = { props . maxLength }
16
16
min = { props . minValue }
17
+ disabled = { props . disabled }
17
18
onChange = { ( event ) => {
18
19
if ( props . type === "number" ) {
19
20
if ( event . target . value >= props . minValue ) {
@@ -47,6 +48,7 @@ TextInput.defaultProps = {
47
48
maxLength : Number . MAX_VALUE ,
48
49
placeholder : "" ,
49
50
minValue : 0 ,
51
+ disabled : false ,
50
52
step : null ,
51
53
} ;
52
54
@@ -58,6 +60,7 @@ TextInput.propTypes = {
58
60
onFocus : PT . func ,
59
61
placeholder : PT . string ,
60
62
value : PT . string . isRequired ,
63
+ disabled : PT . bool ,
61
64
type : PT . string . isRequired ,
62
65
readonly : PT . bool ,
63
66
minValue : PT . number ,
You can’t perform that action at this time.
0 commit comments