added basic series posts

This commit is contained in:
Kim, Jimin 2021-08-01 16:15:48 +09:00
parent 8d6347d6ca
commit a6ac1b4b34
5 changed files with 189 additions and 45 deletions

View file

@ -69,13 +69,17 @@ export default class PostCard extends React.Component<PostCardProps> {
</StyledTitle>
<small>
<table>
{this.props.postData.tags.map((tag) => {
return (
<td key={this.props.postData.title + tag}>
<Tag text={tag} />
</td>
)
})}
{this.props.postData.tags ? (
this.props.postData.tags.map((tag) => {
return (
<td key={this.props.postData.title + tag}>
<Tag text={tag} />
</td>
)
})
) : (
<></>
)}
</table>
Published on{" "}
{this.props.postData?.date