From f76c3af557c88b382fba14c8ab19f64664dcda38 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 20 Mar 2020 16:53:54 -0400 Subject: Adding clearer goto context. - Adding context props. - Making link / context the first selectable on user and inbox page. - Making icons a little bigger. - #609 --- ui/src/components/inbox.tsx | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'ui/src/components/inbox.tsx') diff --git a/ui/src/components/inbox.tsx b/ui/src/components/inbox.tsx index afd9bf95..fa6bd397 100644 --- a/ui/src/components/inbox.tsx +++ b/ui/src/components/inbox.tsx @@ -1,5 +1,4 @@ import { Component, linkEvent } from 'inferno'; -import { Link } from 'inferno-router'; import { Subscription } from 'rxjs'; import { retryWhen, delay, take } from 'rxjs/operators'; import { @@ -34,7 +33,6 @@ import { CommentNodes } from './comment-nodes'; import { PrivateMessage } from './private-message'; import { SortSelect } from './sort-select'; import { i18n } from '../i18next'; -import { T } from 'inferno-i18next'; enum UnreadOrAll { Unread, @@ -100,26 +98,19 @@ export class Inbox extends Component { } render() { - let user = UserService.Instance.user; return (
-
- - ## - +
+ {i18n.t('inbox')} - + # @@ -196,7 +187,12 @@ export class Inbox extends Component {
{combined.map(i => isCommentType(i) ? ( - + ) : ( ) @@ -212,6 +208,7 @@ export class Inbox extends Component { nodes={commentsToFlatNodes(this.state.replies)} noIndent markable + showContext />
); @@ -221,7 +218,12 @@ export class Inbox extends Component { return (
{this.state.mentions.map(mention => ( - + ))}
); -- cgit v1.2.3