dovršen rendering homepage-a

This commit is contained in:
2024-01-04 14:46:31 +01:00
parent 496814d039
commit f11987dd3a
8 changed files with 102 additions and 72 deletions

6
app/lib/format.ts Normal file
View File

@@ -0,0 +1,6 @@
export const formatYearMonth = (yearMonth: number): string => {
const year = Math.floor(yearMonth / 100);
const month = yearMonth % 100;
return `${year}-${month<10?"0":""}${month}`;
}