Many fixes

This commit is contained in:
2020-04-29 02:50:07 +03:00
parent 9beee8f833
commit 9ff4779720
34 changed files with 764 additions and 281 deletions
+2 -1
View File
@@ -20,6 +20,7 @@ class Post extends React.Component<Props, State> {
componentDidMount(): void {
const { match: { params: { postId }} } = this.props;
getPost(postId).then(post => {
this.setState({ post })
}).catch((error: ApiError) => {
@@ -39,7 +40,7 @@ class Post extends React.Component<Props, State> {
{post.full_post}
</div>
<div className="Post__Footer">
{post.author}
Автор: {post.author}
</div>
</div>
)