arqex / react-datetime

A lightweight but complete datetime picker react component.
2k stars 870 forks source link

Extract ViewNavigation component #727

Closed onlined closed 4 years ago

onlined commented 4 years ago

Description

Three files use same navigation structure, so I extracted it to a component for DRY.

Motivation and Context

Checklist

[x] I have not included any built dist files (us maintainers do that prior to a new release)
[ ] I have added tests covering my changes
[x] All new and existing tests pass
[ ] My changes required the documentation to be updated
  [ ] I have updated the documentation accordingly
  [ ] I have updated the TypeScript 1.8 type definitions accordingly
  [ ] I have updated the TypeScript 2.0+ type definitions accordingly
onlined commented 4 years ago

@arqex Directory structure seems good, but I think it should be organized in another PR.