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:
parent
9bdca921b3
commit
870396c4cf
1 changed files with 3 additions and 3 deletions
|
@ -1,13 +1,13 @@
|
|||
import { useTranslation } from "next-i18next"
|
||||
|
||||
type HumanDateProps = {
|
||||
date: Date
|
||||
type FestaMomentProps = {
|
||||
date: Date,
|
||||
}
|
||||
|
||||
/**
|
||||
* 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()
|
||||
|
||||
if (Number.isNaN(date.getTime())) {
|
||||
|
|
Loading…
Reference in a new issue