Closed rosswaycaster closed 4 years ago
Hi there, thanks a lot for the PR! The experience looks very good, I didn't think of it before.
Before I get into reviewing it, couldn't we do this without actually having a dependency on an external library? date-fns
seems 70KBs and I frankly don't see any need of including it only to format the week. What would you think if we implement this using vanilla JS?
Hi @rosswaycaster, I will be closing this PR because of a long-time inactivity, feel free to re-open if you'd like to consider my suggestions above. I may work on this implementing via vanilla JS if I have time in near future as well.
I've added the
date-fns
library which we will use to format the two different time formats as well as formatting the date.I've added functionality that allows for clicking the time to toggle between the 12 & 24 hour time formats.