replaced moment.js with day.js

This commit is contained in:
Ren Amamiya
2023-03-16 15:23:52 +07:00
parent 9a1ca404c3
commit 096ff38a08
4 changed files with 17 additions and 20 deletions

View File

@@ -48,8 +48,12 @@ export default function Page() {
ORDER BY created_at DESC
LIMIT ${limit.current}`
);
// update data
setData((data) => [...result, ...data]);
// update hasNewerNote to false to disable button
setHasNewerNote(false);
// update current time, fixed duplicate note
now.current = new Date();
}, [db, setHasNewerNote]);
const ItemContent = useCallback(