mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-22 13:10:29 +00:00
fix(settings): format the date format files prettier flagged
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { useFormatDate } from '../../../hooks/useDateFormat'
|
||||
import { useFormatDate } from '../../../hooks/useDateFormat';
|
||||
|
||||
/** The day a plugin version was published, in the user's date format (#2971). */
|
||||
export default function MPluginVersionDate({ at, className }: { at?: string | null; className?: string }) {
|
||||
const { formatDate } = useFormatDate()
|
||||
if (!at) return null
|
||||
return <span className={className}>{formatDate(new Date(at))}</span>
|
||||
const { formatDate } = useFormatDate();
|
||||
if (!at) return null;
|
||||
return <span className={className}>{formatDate(new Date(at))}</span>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user