refactor: rename published to date

This commit is contained in:
2024-12-23 14:52:47 +01:00
parent a95232e1b0
commit 1057d40d78
5 changed files with 8 additions and 8 deletions

View File

@@ -49,10 +49,10 @@ export const meta: MetaFunction<typeof loader> = ({ data }) => {
export default function Post() {
const {
code,
frontmatter: { title, published },
frontmatter: { title, date },
file,
} = useLoaderData<typeof loader>();
const formattedDate = useFormattedDate(published);
const formattedDate = useFormattedDate(date);
const MdxComponent = React.useMemo(() => getMDXComponent(code), [code]);
return (