alaska-field-datetime
Advanced tools
Comparing version 0.11.10 to 0.11.12
{ | ||
"name": "alaska-field-datetime", | ||
"version": "0.11.10", | ||
"version": "0.11.12", | ||
"description": "Alaska datetime field", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -15,2 +15,3 @@ // @flow | ||
props: { | ||
className: string, | ||
value: any, | ||
@@ -118,3 +119,3 @@ field: Object, | ||
const t = this.context.t; | ||
const { field, onClose } = this.props; | ||
let { className, field, onClose } = this.props; | ||
const { mode, value1, value2, error } = this.state; | ||
@@ -134,3 +135,3 @@ const buttonClassName = 'btn btn-default'; | ||
} | ||
let className = 'row field-filter datetime-field-filter' + (error ? ' error' : ''); | ||
className += ' datetime-field-filter' + (error ? ' error' : ''); | ||
return ( | ||
@@ -137,0 +138,0 @@ <div className={className}> |
@@ -18,2 +18,3 @@ // @flow | ||
props: { | ||
className: string, | ||
model: Object, | ||
@@ -49,6 +50,3 @@ field: Object, | ||
render() { | ||
let props = this.props; | ||
let value = props.value; | ||
let field = props.field; | ||
let disabled = props.disabled; | ||
let { className, value, field, disabled, errorText, onChange } = this.props; | ||
let valueString: string = ''; | ||
@@ -58,5 +56,4 @@ if (field.format && value) { | ||
} | ||
let errorText = props.errorText; | ||
let help = field.help; | ||
let className = 'form-group datetime-field'; | ||
className += ' date-field'; | ||
if (errorText) { | ||
@@ -77,3 +74,3 @@ className += ' has-error'; | ||
timeFormat={field.timeFormat} | ||
onChange={(value)=>{props.onChange(value.format())}} | ||
onChange={(value)=>{onChange(value.format())}} | ||
/>; | ||
@@ -80,0 +77,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10422
352