Skip to content

Commit

Permalink
[DatePicker] Remove deprecaed warning from inner components
Browse files Browse the repository at this point in the history
  • Loading branch information
tintin1343 committed May 4, 2016
1 parent 3b13929 commit 4bc7aa2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/DatePicker/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import CalendarToolbar from './CalendarToolbar';
import DateDisplay from './DateDisplay';
import SlideInTransitionGroup from '../internal/SlideIn';
import ClearFix from '../internal/ClearFix';
import deprecated from '../utils/deprecatedPropType';

import {
addDays,
Expand Down Expand Up @@ -46,7 +45,7 @@ class Calendar extends Component {
open: PropTypes.bool,
shouldDisableDate: PropTypes.func,
showActionButtons: PropTypes.bool,
wordings: deprecated(PropTypes.object, 'Instead, use `cancelLabel` and `okLabel`.'),
wordings: PropTypes.object,
};

static defaultProps = {
Expand Down
3 changes: 1 addition & 2 deletions src/DatePicker/CalendarActionButtons.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import React, {Component, PropTypes} from 'react';
import FlatButton from '../FlatButton';
import deprecated from '../utils/deprecatedPropType';

class CalendarActionButton extends Component {
static propTypes = {
cancelLabel: PropTypes.node,
okLabel: PropTypes.node,
onTouchTapCancel: PropTypes.func,
onTouchTapOk: PropTypes.func,
wordings: deprecated(PropTypes.object, 'Instead, use `cancelLabel` and `okLabel`.'),
wordings: PropTypes.object,
};

render() {
Expand Down
3 changes: 1 addition & 2 deletions src/DatePicker/DatePickerDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import Calendar from './Calendar';
import Dialog from '../Dialog';
import Popover from '../Popover/Popover';
import PopoverAnimationFromTop from '../Popover/PopoverAnimationVertical';
import deprecated from '../utils/deprecatedPropType';
import {dateTimeFormat} from './dateUtils';

class DatePickerDialog extends Component {
Expand All @@ -28,7 +27,7 @@ class DatePickerDialog extends Component {
open: PropTypes.bool,
shouldDisableDate: PropTypes.func,
style: PropTypes.object,
wordings: deprecated(PropTypes.object, 'Instead, use `cancelLabel` and `okLabel`.'),
wordings: PropTypes.object,
};

static defaultProps = {
Expand Down

0 comments on commit 4bc7aa2

Please sign in to comment.