Skip to content

Commit

Permalink
fix [510]: dateRangePicker styling
Browse files Browse the repository at this point in the history
  • Loading branch information
luciatugui committed Jul 12, 2024
1 parent 54c9066 commit 82694bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/components/date-range-picker/DateRangePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const DateRangePicker = ({ label, value, onChange, id }: DateRangePickerProps) =
useEffect(() => {
if (value) {
setDateRange(value);
} else[setDateRange([])];
} else [setDateRange([])];
}, [value]);

useEffect(() => {
Expand All @@ -43,7 +43,8 @@ const DateRangePicker = ({ label, value, onChange, id }: DateRangePickerProps) =
/>
</div>
<DatePicker
className="block w-full pr-10 border-gray-300 shadow-sm rounded-md focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm lg:text-base text-xs leading-loose"
wrapperClassName="w-full"
className="block w-full h-[44px] pr-10 border-gray-300 shadow-sm rounded-md focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm lg:text-base text-xs leading-loose"
selectsRange={true}
startDate={startDate}
endDate={endDate}
Expand Down

0 comments on commit 82694bc

Please sign in to comment.