chore: tweak date utils

This commit is contained in:
Steven
2024-07-27 17:21:22 +08:00
parent 3d63d9d5fb
commit b9006f8ce0
7 changed files with 7 additions and 48 deletions

View File

@ -82,7 +82,7 @@ const UserStatisticsView = () => {
type="month"
value={monthString}
onFocus={(e: any) => e.target.showPicker()}
onChange={(e) => setMonthString(e.target.value)}
onChange={(e) => setMonthString(e.target.value || dayjs().format("YYYY-MM"))}
/>
</div>
<div className="invisible group-hover:visible flex justify-end items-center">