From 836294c2293648db1af4a16f729b9aa64b194ead Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Sat, 4 Feb 2023 21:55:40 -0500 Subject: [PATCH] posts --- doordesk/src/components/Blog.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/doordesk/src/components/Blog.tsx b/doordesk/src/components/Blog.tsx index dfc3934..5234e70 100644 --- a/doordesk/src/components/Blog.tsx +++ b/doordesk/src/components/Blog.tsx @@ -1,6 +1,10 @@ -import { Component } from 'react' +import { Component } from 'react' import BlogPost from './BlogPost.js' +const BLOG_URLS: string[] = [ + 'blog/20220506-change.html', + 'blog/000000000-swim.html' +] interface IBlogProps { } @@ -11,11 +15,15 @@ class Blog extends Component { constructor(props: IBlogProps) { super(props) } + renderPosts(urls: string[]): JSX.Element[] { + return ( + urls.map((postURL) => ) + ) + } render() { return ( <> - - + {this.renderPosts(BLOG_URLS)} ) }