implented adding year-month
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user