refactor View.tsx as ArticleView.tsx

This commit is contained in:
2025-11-15 03:35:55 +05:30
parent 33e9d70b98
commit 1b755968dd
2 changed files with 2 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ export default function Blog(props: { disableCustomTheme?: boolean }) {
);
case 'article':
if (selectedArticle == null || !articles[selectedArticle]) return null;
return <Article article={articles[selectedArticle]} onBack={handleBack} />;
return <ArticleView article={articles[selectedArticle]} onBack={handleBack} />;
case 'home':
default:
return (

View File

@@ -23,7 +23,7 @@ const CoverImage = styled('img')({
marginBottom: '24px',
});
export default function View({
export default function ArticleView({
article,
onBack
}: ArticleProps) {