From d9bae720d74cf215774cec9358959a52d9a7b035 Mon Sep 17 00:00:00 2001 From: Wahyu Kurniawan Date: Tue, 5 Mar 2024 05:06:53 +0700 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20feat:=20update=20date=20pi?= =?UTF-8?q?cker=20input=20icon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/shared/DatePicker/DatePicker.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/components/shared/DatePicker/DatePicker.tsx b/packages/frontend/src/components/shared/DatePicker/DatePicker.tsx index bae4502a..464b9b74 100644 --- a/packages/frontend/src/components/shared/DatePicker/DatePicker.tsx +++ b/packages/frontend/src/components/shared/DatePicker/DatePicker.tsx @@ -3,7 +3,10 @@ import { Input, InputProps } from 'components/shared/Input'; import * as Popover from '@radix-ui/react-popover'; import { datePickerTheme } from './DatePicker.theme'; import { Calendar, CalendarProps } from 'components/shared/Calendar'; -import { CalendarIcon } from 'components/shared/CustomIcon'; +import { + CalendarIcon, + ChevronGrabberHorizontal, +} from 'components/shared/CustomIcon'; import { Value } from 'react-calendar/dist/cjs/shared/types'; import { format } from 'date-fns'; @@ -64,7 +67,7 @@ export const DatePicker = ({ } return format(value, 'dd/MM/yyyy'); }, [value, onReset]); - console.log(renderValue); + /** * Handles the selection of a date from the calendar. */ @@ -86,7 +89,8 @@ export const DatePicker = ({ setOpen(true)} />} + leftIcon={ setOpen(true)} />} + rightIcon={} readOnly placeholder="Select a date..." value={renderValue}