dovršen rendering homepage-a
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user