react-nice-dates icon indicating copy to clipboard operation
react-nice-dates copied to clipboard

Add leap year label

Open nicolasmartinez0510 opened this issue 4 years ago • 0 comments

Something that would be cool to have is a label next to date navigation to indicate if that year is leap year. Like this:

<span className='nice-dates-navigation_current'>
        {format(month, getYear(month) === getYear(new Date()) ? 'LLLL' : 'LLLL yyyy', { locale })}
        <span className="nice-dates-navigation_current_leap-year">{ isLeapYear(month) ? ' (Leap Year) ' : '' }</span>
</span>

imagen

obviously to do this need to add the internationalization(of course if you want to do this )

nicolasmartinez0510 avatar Dec 13 '21 14:12 nicolasmartinez0510