Skip to content

Commit 29c9098

Browse files
committed
Add isValueType propType
1 parent aef9215 commit 29c9098

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/DateTimeInput/NativeInput.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
22
import PropTypes from 'prop-types';
33

44
import { getISOLocalDateTime } from '../shared/dates';
5-
import { isMaxDate, isMinDate } from '../shared/propTypes';
5+
import { isMaxDate, isMinDate, isValueType } from '../shared/propTypes';
66

77
const nativeValueParser = getISOLocalDateTime;
88

@@ -64,4 +64,5 @@ NativeInput.propTypes = {
6464
PropTypes.string,
6565
PropTypes.instanceOf(Date),
6666
]),
67+
valueType: isValueType,
6768
};

src/shared/propTypes.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ export {
22
isMaxDate,
33
isMinDate,
44
} from 'react-calendar/dist/shared/propTypes';
5+
6+
export {
7+
isValueType,
8+
} from 'react-time-picker/dist/shared/propTypes';

0 commit comments

Comments
 (0)