diff --git a/src/assets/markdown.json b/src/assets/markdown.json index e1d3b52..4f85209 100644 --- a/src/assets/markdown.json +++ b/src/assets/markdown.json @@ -3,6 +3,7 @@ "name": "react_caveats", "description": "Some caveats on react useCallback / useMemo hook and re-renders", "tags": ["react"], - "readingTime": 5 + "readingTime": 5, + "createAt": "2024-04-01T13:54:55.951Z" } ] \ No newline at end of file diff --git a/src/components/Blog/index.tsx b/src/components/Blog/index.tsx index 79d7336..187fee8 100644 --- a/src/components/Blog/index.tsx +++ b/src/components/Blog/index.tsx @@ -18,16 +18,17 @@ type BlogPostRowType = { description: string; tags: string[]; readingTime: number; + createAt: Date; } function BlogPostRow(props: BlogPostRowType) { - const { title, description, tags, readingTime } = props; + const { title, description, tags, readingTime, createAt } = props; const navigate = useNavigate(); return (
Today
+{`${createAt.toLocaleDateString()}`}
Blog page under construction :P