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/UserInfo.js | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'vnext/src/ui/UserInfo.js') diff --git a/vnext/src/ui/UserInfo.js b/vnext/src/ui/UserInfo.js index f71dfcdc..ac9c6c69 100644 --- a/vnext/src/ui/UserInfo.js +++ b/vnext/src/ui/UserInfo.js @@ -1,5 +1,4 @@ import { memo, useState, useEffect, useRef } from 'react' -import { Link } from 'react-router-dom' import { info, fetchUserUri } from '../api' @@ -42,18 +41,18 @@ export default function UserInfo({ uname, onUpdate, children }) { { user.uid > 0 && <> - + PM - - + + Recommendations - - + + Photos - + } @@ -70,9 +69,9 @@ function Summary({ user }) { const readUrl = `/${user.uname}/friends` const readersUrl = `/${user.uname}/readers` const blUrl = `/${user.uname}/bl` - let read = user.read && I read: {user.read.length} - let readers = user.readers && My readers: {user.readers.length} - let mybl = user.statsMyBL && My blacklist: {user.statsMyBL} + let read = user.read && I read: {user.read.length} + let readers = user.readers && My readers: {user.readers.length} + let mybl = user.statsMyBL && My blacklist: {user.statsMyBL} let presentItems = [read, readers, mybl].filter(Boolean) return (
@@ -119,9 +118,9 @@ export function UserLink(props) { }, [props.user]) return ( user.uid ? - + {user.uname} - + : {user.uname} -- cgit v1.2.3