From f8ac2f39dbce6c523a61971da804bccf28ecae8a Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Wed, 23 Aug 2023 15:44:33 +0300
Subject: Dynamic feeds WIP
---
vnext/src/ui/Avatar.js | 9 ++++-----
vnext/src/ui/Feeds.js | 2 +-
vnext/src/ui/Message.js | 31 +++++++++++++------------------
vnext/src/ui/UserInfo.js | 23 +++++++++++------------
4 files changed, 29 insertions(+), 36 deletions(-)
(limited to 'vnext/src/ui')
diff --git a/vnext/src/ui/Avatar.js b/vnext/src/ui/Avatar.js
index 1a8db0c3..20e4e133 100644
--- a/vnext/src/ui/Avatar.js
+++ b/vnext/src/ui/Avatar.js
@@ -1,5 +1,4 @@
import { memo } from 'react'
-import { Link } from 'react-router-dom'
import Icon from './Icon'
@@ -21,19 +20,19 @@ function Avatar({ user, style, link, children }) {
diff --git a/vnext/src/ui/Feeds.js b/vnext/src/ui/Feeds.js
index 086a910e..51e0209e 100644
--- a/vnext/src/ui/Feeds.js
+++ b/vnext/src/ui/Feeds.js
@@ -216,7 +216,7 @@ function Feed({ query }) {
}
{
state.msgs.map(msg =>
- )
+ )
}
{
state.msgs.length >= 20 && (
diff --git a/vnext/src/ui/Message.js b/vnext/src/ui/Message.js
index e4135700..ec9af46f 100644
--- a/vnext/src/ui/Message.js
+++ b/vnext/src/ui/Message.js
@@ -6,7 +6,6 @@ dayjs.extend(utc)
import relativeTime from 'dayjs/plugin/relativeTime'
dayjs.extend(relativeTime)
-import { Link } from 'react-router-dom'
import Icon from './Icon'
import Avatar from './Avatar'
import { UserLink } from './UserInfo'
@@ -63,19 +62,17 @@ export default function Message({ data, isThread, onToggleSubscription, children
data.user &&
@@ -101,21 +98,20 @@ export default function Message({ data, isThread, onToggleSubscription, children
{canComment &&