diff options
author | Richard <richard@tripaneer.com> | 2020-01-31 21:52:27 +0100 |
---|---|---|
committer | Richard <richard@tripaneer.com> | 2020-01-31 21:52:27 +0100 |
commit | 2f9a052f89fe8d34fedcd2219e644dd51cda5505 (patch) | |
tree | 78caf41816cce8fcc17a85d874a446a86da5e80b /ui/src/components/post-listings.tsx | |
parent | 8cbdba1da39c15d2a3d13919398fc4d4c8ef2c6c (diff) |
usability features
This are all the commits from another PR combined into a single commit.
Diffstat (limited to 'ui/src/components/post-listings.tsx')
-rw-r--r-- | ui/src/components/post-listings.tsx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ui/src/components/post-listings.tsx b/ui/src/components/post-listings.tsx index b65c9192..d3d89e54 100644 --- a/ui/src/components/post-listings.tsx +++ b/ui/src/components/post-listings.tsx @@ -2,6 +2,7 @@ import { Component } from 'inferno'; import { Link } from 'inferno-router'; import { Post } from '../interfaces'; import { PostListing } from './post-listing'; +import { i18n } from '../i18next'; import { T } from 'inferno-i18next'; interface PostListingsProps { @@ -30,14 +31,12 @@ export class PostListings extends Component<PostListingsProps, any> { )) ) : ( <> - <div> - <T i18nKey="no_posts">#</T> - </div> + <h2> + { i18n.t('no_posts') } + </h2> {this.props.showCommunity !== undefined && ( <div> - <T i18nKey="subscribe_to_communities"> - #<Link to="/communities">#</Link> - </T> + <Link to="/communities">{ i18n.t('subscribe_to_communities') }</Link> </div> )} </> |