From a29af98e4bc2df045052a935030abe2e31ca22e1 Mon Sep 17 00:00:00 2001
From: Dessalines <tyhou13@gmx.com>
Date: Sat, 7 Dec 2019 16:39:43 -0800
Subject: Adding RSS feeds for inbox and subscribed. Refactored RSS code.

- Fixes #349
---
 ui/src/components/inbox.tsx | 22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)

(limited to 'ui/src/components/inbox.tsx')

diff --git a/ui/src/components/inbox.tsx b/ui/src/components/inbox.tsx
index bcde9363..39109a5d 100644
--- a/ui/src/components/inbox.tsx
+++ b/ui/src/components/inbox.tsx
@@ -92,11 +92,23 @@ export class Inbox extends Component<any, InboxState> {
         <div class="row">
           <div class="col-12">
             <h5 class="mb-0">
-              <span>
-                <T i18nKey="inbox_for" interpolation={{ user: user.username }}>
-                  #<Link to={`/u/${user.username}`}>#</Link>
-                </T>
-              </span>
+              <T
+                class="d-inline"
+                i18nKey="inbox_for"
+                interpolation={{ user: user.username }}
+              >
+                #<Link to={`/u/${user.username}`}>#</Link>
+              </T>
+              <small>
+                <a
+                  href={`/feeds/inbox/${UserService.Instance.auth}.xml`}
+                  target="_blank"
+                >
+                  <svg class="icon mx-2 text-muted small">
+                    <use xlinkHref="#icon-rss">#</use>
+                  </svg>
+                </a>
+              </small>
             </h5>
             {this.state.replies.length + this.state.mentions.length > 0 &&
               this.state.unreadOrAll == UnreadOrAll.Unread && (
-- 
cgit v1.2.3

