mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
fix sonar warnings
This commit is contained in:
@@ -4,7 +4,11 @@ import dayjs from "dayjs"
|
||||
import { Constants } from "@/app/constants"
|
||||
import { useNow } from "@/hooks/useNow"
|
||||
|
||||
export function RelativeDate(props: { date: Date | number | undefined }) {
|
||||
export function RelativeDate(
|
||||
props: Readonly<{
|
||||
date: Date | number | undefined
|
||||
}>
|
||||
) {
|
||||
const now = useNow(60 * 1000)
|
||||
|
||||
if (!props.date) return <Trans>N/A</Trans>
|
||||
|
||||
Reference in New Issue
Block a user