From 02511eefb9cfb617926a95cc8901013bf2afcb71 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 5 Feb 2020 12:56:01 -0500 Subject: [PATCH] Fix i18n issue with no communities. --- ui/src/components/post-listings.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ui/src/components/post-listings.tsx b/ui/src/components/post-listings.tsx index 65db3727c..005c4fe03 100644 --- a/ui/src/components/post-listings.tsx +++ b/ui/src/components/post-listings.tsx @@ -3,6 +3,7 @@ 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 { posts: Array; @@ -36,11 +37,9 @@ export class PostListings extends Component { <>
{i18n.t('no_posts')}
{this.props.showCommunity !== undefined && ( -
- - {i18n.t('subscribe_to_communities')} - -
+ + ## + )} )}