diff options
author | Vitaly Takmazov | 2022-11-01 20:28:30 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:58 +0300 |
commit | 4b8d5219a2320e6d3d1e1260574bd6042c97b27e (patch) | |
tree | 11f5607560b2f45b3782a88fdc2962cf696b50f5 /vnext/src/ui/Users.js | |
parent | b197e2616db62e25227548bfdb085f4e1f2908f0 (diff) |
Add page titles
Diffstat (limited to 'vnext/src/ui/Users.js')
-rw-r--r-- | vnext/src/ui/Users.js | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/vnext/src/ui/Users.js b/vnext/src/ui/Users.js index 900cfaf0..b0e19dfa 100644 --- a/vnext/src/ui/Users.js +++ b/vnext/src/ui/Users.js @@ -3,13 +3,21 @@ import { useParams } from 'react-router-dom'; import UserInfo from './UserInfo'; import Avatar from './Avatar'; +import { Helmet } from 'react-helmet'; /** * Friends feed */ export function Friends() { const params = useParams(); - return <Users uname={params.user} prop='read' />; + return ( + <> + <Helmet> + <title>{params.user} subscriptions</title> + </Helmet> + <Users uname={params.user} prop='read' /> + </> + ); } /** @@ -17,7 +25,14 @@ export function Friends() { */ export function Readers() { const params = useParams(); - return <Users uname={params.user} prop='readers' />; + return ( + <> + <Helmet> + <title>{params.user} readers</title> + </Helmet> + <Users uname={params.user} prop='readers' /> + </> + ); } /** |