Skip to content

Commit

Permalink
fix propTypes deprecation issue (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
thg303 authored and mohebifar committed Aug 10, 2017
1 parent e7dd109 commit 1aff540
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 7 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"dependencies": {
"classnames": "^2.2.5",
"moment-jalali": "^0.3.9",
"prop-types": "^15.5.10",
"rc-trigger": "^1.7.2",
"react-onclickoutside": "^5.3.3",
"react-tether": "^0.5.2"
Expand Down
3 changes: 2 additions & 1 deletion src/components/Calendar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import DaysViewHeading from './DaysViewHeading';
import DaysOfWeek from './DaysOfWeek';
import MonthSelector from './MonthSelector';
Expand Down
3 changes: 2 additions & 1 deletion src/components/DatePicker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import moment from 'moment-jalali';
import TetherComponent from 'react-tether';
import Calendar from './Calendar';
Expand Down
3 changes: 2 additions & 1 deletion src/components/Day.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { persianNumber } from '../utils/persian';

Expand Down
3 changes: 2 additions & 1 deletion src/components/DaysOfWeek.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';

// Day of week names for use in date-picker heading
const dayOfWeekNames = ['ش', 'ی', 'د', 'س', 'چ', 'پ', 'ج'];
Expand Down
3 changes: 2 additions & 1 deletion src/components/DaysViewHeading.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { persianNumber } from '../utils/persian';
import { leftArrow, rightArrow } from '../utils/assets';

Expand Down
3 changes: 2 additions & 1 deletion src/components/MonthSelector.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import moment from 'moment-jalali';
import classnames from 'classnames';
import MonthsViewHeading from './MonthsViewHeading';
Expand Down
3 changes: 2 additions & 1 deletion src/components/MonthsViewHeading.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { persianNumber } from '../utils/persian';
import { leftArrow, rightArrow } from '../utils/assets';

Expand Down

1 comment on commit 1aff540

@SimaGhoreyshi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

سلام و عرض تشکر،
دستوری که برای نصب دیت پیکر توی گیت هاب گذاشتین با دستوری که توی npmjs گذاشته شده تفاوت داره. دستور گیت هاب کار نمیکنه.

Please sign in to comment.