Skip to content

Commit

Permalink
Reorder propTypes in alphabetical order
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Oct 16, 2020
1 parent 8cf7b33 commit c4f48ae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/shared/propTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ const allViews = ['century', 'decade', 'year', 'month'];

export const isCalendarType = PropTypes.oneOf(calendarTypes);

export const isClassName = PropTypes.oneOfType([
PropTypes.string,
PropTypes.arrayOf(PropTypes.string),
]);

export const isMinDate = (props, propName, componentName) => {
const { [propName]: minDate } = props;

Expand Down Expand Up @@ -54,11 +59,6 @@ export const isValue = PropTypes.oneOfType([

export const isViews = PropTypes.arrayOf(PropTypes.oneOf(allViews));

export const isClassName = PropTypes.oneOfType([
PropTypes.string,
PropTypes.arrayOf(PropTypes.string),
]);

export const isView = (props, propName, componentName) => {
const { [propName]: view } = props;
const { views } = props;
Expand Down

0 comments on commit c4f48ae

Please sign in to comment.