1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-22 22:54:22 +00:00

Rename FestaMoment props type

This commit is contained in:
Steffo 2022-06-10 00:22:47 +02:00
parent 9bdca921b3
commit 870396c4cf
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -1,13 +1,13 @@
import { useTranslation } from "next-i18next" import { useTranslation } from "next-i18next"
type HumanDateProps = { type FestaMomentProps = {
date: Date date: Date,
} }
/** /**
* Component that formats a {@link Date} to a machine-readable and human-readable HTML `time[datetime]` element. * Component that formats a {@link Date} to a machine-readable and human-readable HTML `time[datetime]` element.
*/ */
export function FestaMoment({ date }: HumanDateProps) { export function FestaMoment({ date }: FestaMomentProps) {
const { t } = useTranslation() const { t } = useTranslation()
if (Number.isNaN(date.getTime())) { if (Number.isNaN(date.getTime())) {