Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit c94b38d

Browse files
committedMar 18, 2021
Merge branch 'issue-138' of github.com:yoution/taas-app into issue-138
2 parents 33e75f6 + 0e780ae commit c94b38d

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed
 

‎config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* global process */
22

33
module.exports = (() => {
4-
const env = process.env.APPENV || "prod";
4+
const env = process.env.APPENV || "dev";
55

66
console.info(`APPENV: "${env}"`);
77

‎src/components/DateInput/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const DateInput = (props) => {
1616
dateFormat="MM/dd/yyyy"
1717
placeholderText={props.placeholder}
1818
selected={props.value}
19+
disabled={props.disabled}
1920
onChange={props.onChange}
2021
onBlur={props.onBlur}
2122
onCalendarClose={props.onBlur}
@@ -28,6 +29,7 @@ const DateInput = (props) => {
2829
DateInput.propTypes = {
2930
value: PT.string,
3031
onChange: PT.func.isRequired,
32+
disabled: PT.bool,
3133
placeholder: PT.string,
3234
onBlur: PT.func,
3335
onFocus: PT.func,

‎src/components/TextInput/index.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ function TextInput(props) {
1414
styleName={cn("TextInput", props.className, { readonly: props.readonly })}
1515
maxLength={props.maxLength}
1616
min={props.minValue}
17+
disabled={props.disabled}
1718
onChange={(event) => {
1819
if (props.type === "number") {
1920
if (event.target.value >= props.minValue) {
@@ -47,6 +48,7 @@ TextInput.defaultProps = {
4748
maxLength: Number.MAX_VALUE,
4849
placeholder: "",
4950
minValue: 0,
51+
disabled: false,
5052
step: null,
5153
};
5254

@@ -58,6 +60,7 @@ TextInput.propTypes = {
5860
onFocus: PT.func,
5961
placeholder: PT.string,
6062
value: PT.string.isRequired,
63+
disabled: PT.bool,
6164
type: PT.string.isRequired,
6265
readonly: PT.bool,
6366
minValue: PT.number,

0 commit comments

Comments
 (0)
This repository has been archived.