From c4f48aec877e1bbfc2981f532951e16edd8fe767 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Fri, 16 Oct 2020 11:18:57 +0200 Subject: [PATCH] Reorder propTypes in alphabetical order --- src/shared/propTypes.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/shared/propTypes.js b/src/shared/propTypes.js index 23064ca7..72e121cf 100644 --- a/src/shared/propTypes.js +++ b/src/shared/propTypes.js @@ -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; @@ -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;