feat: refactor date-and-time-picker to use custom dayjs utility and add timezone support (#15101)

This commit is contained in:
Wu Tianwei 2025-03-06 16:24:03 +08:00 • committed by GitHub
commit 5be8fbab56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 102 additions and 38 deletions

View file

@ -22,18 +22,18 @@ const Header: FC<DatePickerHeaderProps> = ({
<RiArrowDownSLine className='w-4 h-4 text-text-tertiary' />
</button>
</div>
<button
onClick={onClickNextMonth}
className='p-1.5 hover:bg-state-base-hover rounded-lg'
>
<RiArrowDownSLine className='w-[18px] h-[18px] text-text-secondary' />
</button>
<button
onClick={onClickPrevMonth}
className='p-1.5 hover:bg-state-base-hover rounded-lg'
>
<RiArrowUpSLine className='w-[18px] h-[18px] text-text-secondary' />
</button>
<button
onClick={onClickNextMonth}
className='p-1.5 hover:bg-state-base-hover rounded-lg'
>
<RiArrowDownSLine className='w-[18px] h-[18px] text-text-secondary' />
</button>
</div>
)
}