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

View File

@@ -1,8 +1,9 @@
import { FC } from "react";
import { formatYearMonth } from "../lib/format";
export interface MonthTitleProps {
month: Date;
yearMonth: number;
}
export const MonthTitle:FC<MonthTitleProps> = ({month}) =>
<div className="divider text-2xl">{`${month.getFullYear()}-${month.getMonth()+1}`}</div>
export const MonthTitle:FC<MonthTitleProps> = ({yearMonth}) =>
<div className="divider text-2xl">{`${formatYearMonth(yearMonth)}`}</div>