Updated date range picker component
Removed redundant code