implemented infinite loading

This commit is contained in:
Ren Amamiya
2023-02-28 14:53:27 +07:00
parent f4b5764db6
commit 964343ccc8
6 changed files with 122 additions and 121 deletions

View File

@@ -11,3 +11,9 @@ export const hoursAgo = (numOfHours, date = new Date()) => {
return hoursAgo;
};
export const dateToUnix = (_date?: Date) => {
const date = _date || new Date();
return Math.floor(date.getTime() / 1000);
};