diff options
author | Dessalines <tyhou13@gmx.com> | 2020-02-02 14:37:19 -0500 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-02-02 14:37:19 -0500 |
commit | caba049da12017f22a8ffa8d6b8e7f0a2cc20e6a (patch) | |
tree | 5c53177858098e4d4414896bba53f90f0ceddd78 /ui/src/components/community.tsx | |
parent | 96a7e99e57f8c79eead599e6de5d94016f7021e6 (diff) | |
parent | 6124133e8517165a97aa87af5485857a000951a2 (diff) |
Merge branch 'dev' into websocket_scopes
Diffstat (limited to 'ui/src/components/community.tsx')
-rw-r--r-- | ui/src/components/community.tsx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ui/src/components/community.tsx b/ui/src/components/community.tsx index 18767c51..9f96ac51 100644 --- a/ui/src/components/community.tsx +++ b/ui/src/components/community.tsx @@ -24,7 +24,6 @@ import { PostListings } from './post-listings'; import { SortSelect } from './sort-select'; import { Sidebar } from './sidebar'; import { wsJsonToRes, routeSortTypeToEnum, fetchLimit, toast } from '../utils'; -import { T } from 'inferno-i18next'; import { i18n } from '../i18next'; interface State { @@ -136,12 +135,12 @@ export class Community extends Component<any, State> { {this.state.community.title} {this.state.community.removed && ( <small className="ml-2 text-muted font-italic"> - <T i18nKey="removed">#</T> + {i18n.t('removed')} </small> )} {this.state.community.nsfw && ( <small className="ml-2 text-muted font-italic"> - <T i18nKey="nsfw">#</T> + {i18n.t('nsfw')} </small> )} </h5> @@ -189,7 +188,7 @@ export class Community extends Component<any, State> { class="btn btn-sm btn-secondary mr-1" onClick={linkEvent(this, this.prevPage)} > - <T i18nKey="prev">#</T> + {i18n.t('prev')} </button> )} {this.state.posts.length == fetchLimit && ( @@ -197,7 +196,7 @@ export class Community extends Component<any, State> { class="btn btn-sm btn-secondary" onClick={linkEvent(this, this.nextPage)} > - <T i18nKey="next">#</T> + {i18n.t('next')} </button> )} </div> |