i18n: minor fixes
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
"use client";
|
||||
|
||||
import { PlusCircleIcon, CalendarDaysIcon } from "@heroicons/react/24/outline";
|
||||
import React from "react";
|
||||
import { formatYearMonth } from "../lib/format";
|
||||
@@ -11,12 +13,12 @@ export interface AddMonthButtonProps {
|
||||
|
||||
export const AddMonthButton:React.FC<AddMonthButtonProps> = ({ yearMonth }) => {
|
||||
|
||||
const t = useTranslations("home-page");
|
||||
const t = useTranslations("home-page.add-month-button");
|
||||
const locale = useLocale();
|
||||
|
||||
return(
|
||||
<div className="card card-compact shadow-s mb-4">
|
||||
<Link href={`/${locale}/year-month/${formatYearMonth(yearMonth)}/add`} className='grid self-center tooltip' data-tip={t("add-month-button.tooltip")}>
|
||||
<Link href={`/${locale}/year-month/${formatYearMonth(yearMonth)}/add`} className='grid self-center tooltip' data-tip={t("tooltip")}>
|
||||
<span className='flex self-center mr-[-3em]'>
|
||||
<CalendarDaysIcon className="h-[1em] w-[1em] cursor-pointer text-4xl" />
|
||||
<PlusCircleIcon className="h-[1em] w-[1em] cursor-pointer text-xl text-green-500 ml-[-.4em] mt-[-.4em]" />
|
||||
|
||||
Reference in New Issue
Block a user