calendar icon indicating copy to clipboard operation
calendar copied to clipboard

RangeCalendar format propType to work with array

Open onlyann opened this issue 6 years ago • 1 comments

The format prop accepts both string and string[].

Update the format prop type to match the underlying CalendarPart component.

Without this change, passing an array of formats to the RangeCalendar component works but results in a warning.

onlyann avatar Aug 02 '19 00:08 onlyann

Codecov Report

Merging #613 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #613   +/-   ##
=======================================
  Coverage   90.78%   90.78%           
=======================================
  Files          10       10           
  Lines         716      716           
  Branches      214      214           
=======================================
  Hits          650      650           
  Misses         57       57           
  Partials        9        9
Impacted Files Coverage Δ
src/RangeCalendar.js 89.8% <ø> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d486704...00dd145. Read the comment docs.

codecov[bot] avatar Aug 02 '19 00:08 codecov[bot]