implented adding year-month

This commit is contained in:
2024-01-05 15:56:04 +01:00
parent 2413ab9240
commit 0b85e74eb0
4 changed files with 126 additions and 6 deletions

View File

@@ -1,9 +1,11 @@
import { PlusCircleIcon } from "@heroicons/react/24/outline";
import React from "react";
export interface AddMonthButtonProps {
yearMonth: number;
}
export const AddMonthButton:FC<AddMonthButtonProps> = () =>
<span className='grid self-center' data-tip="Dodaj novi mjesec">
export const AddMonthButton:React.FC<AddMonthButtonProps> = ({ yearMonth }) =>
<a href={`/year-month/${yearMonth}/add`} className='grid self-center tooltip' data-tip="Dodaj novi mjesec">
<PlusCircleIcon className="h-[1em] w-[1em] cursor-pointer text-4xl" />
</span>
</a>