alaska-field-datetime
Advanced tools
Comparing version 0.11.9 to 0.11.10
{ | ||
"name": "alaska-field-datetime", | ||
"version": "0.11.9", | ||
"version": "0.11.10", | ||
"description": "Alaska datetime field", | ||
@@ -15,4 +15,4 @@ "keywords": [ | ||
"moment": "^2.18.1", | ||
"react-datetime": "^2.8.8" | ||
"react-datetime": "^2.8.9" | ||
} | ||
} |
// @flow | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import DateTime from 'react-datetime'; | ||
import moment from 'moment'; | ||
const { func } = React.PropTypes; | ||
export default class DatetimeFieldFilter extends React.Component { | ||
static contextTypes = { | ||
t: func, | ||
t: PropTypes.func, | ||
}; | ||
@@ -14,0 +13,0 @@ |
// @flow | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import shallowEqualWithout from 'shallow-equal-without'; | ||
@@ -10,8 +11,6 @@ import DateTime from 'react-datetime'; | ||
const { object } = React.PropTypes; | ||
export default class DatetimeFieldView extends React.Component { | ||
static contextTypes = { | ||
settings: object | ||
settings: PropTypes.object | ||
}; | ||
@@ -25,3 +24,3 @@ | ||
disabled: boolean, | ||
value: any, | ||
value: string, | ||
onChange: Function, | ||
@@ -31,3 +30,3 @@ }; | ||
state: { | ||
value:moment; | ||
value: Object; | ||
}; | ||
@@ -78,3 +77,3 @@ | ||
timeFormat={field.timeFormat} | ||
onChange={props.onChange} | ||
onChange={(value)=>{props.onChange(value.format())}} | ||
/>; | ||
@@ -81,0 +80,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
10486
Updatedreact-datetime@^2.8.9