From 1f5066a6615a0279402f884fe5132345894aa2e6 Mon Sep 17 00:00:00 2001 From: Vishesh 'ironeagle' Bangotra Date: Wed, 12 Nov 2025 05:19:48 +0530 Subject: [PATCH] Article to use ArticleMeta --- src/blog/components/Article.tsx | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/blog/components/Article.tsx b/src/blog/components/Article.tsx index 429fd81..e9662f1 100644 --- a/src/blog/components/Article.tsx +++ b/src/blog/components/Article.tsx @@ -3,6 +3,7 @@ import { marked } from 'marked'; import { Box, Typography, Avatar, Divider, IconButton, Chip } from '@mui/material'; import { styled } from '@mui/material/styles'; import ArrowBackRoundedIcon from '@mui/icons-material/ArrowBackRounded'; +import { ArticleMeta } from "./ArticleMeta"; import { ArticleProps } from '../types/props'; const ArticleContainer = styled(Box)(({ theme }) => ({ @@ -44,21 +45,7 @@ export default function Article({ {article.title} - - - - {article.authors[0].name} - - {new Date(article.created_at).toLocaleString('en-US', { - year: 'numeric', - month: 'short', - day: 'numeric', - hour: '2-digit', - minute: '2-digit', - })} - - - +