From 4b8d5219a2320e6d3d1e1260574bd6042c97b27e Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Tue, 1 Nov 2022 20:28:30 +0300
Subject: Add page titles
---
vnext/src/ui/Feeds.js | 37 ++++++++++++++++++++++++++++++++-----
1 file changed, 32 insertions(+), 5 deletions(-)
(limited to 'vnext/src/ui/Feeds.js')
diff --git a/vnext/src/ui/Feeds.js b/vnext/src/ui/Feeds.js
index 75f1800d..c0698204 100644
--- a/vnext/src/ui/Feeds.js
+++ b/vnext/src/ui/Feeds.js
@@ -11,6 +11,7 @@ import UserInfo from './UserInfo';
import { getMessages } from '../api';
import { useVisitor } from './VisitorContext';
+import { Helmet } from 'react-helmet';
/**
* @typedef {object} Query
@@ -27,7 +28,7 @@ import { useVisitor } from './VisitorContext';
function RequireAuth({ children }) {
let location = useLocation();
- let [ visitor ] = useVisitor();
+ let [visitor] = useVisitor();
if (!visitor.hash) {
// Redirect them to the /login page, but save the current location they were
// trying to go to when they were redirected. This allows us to send them
@@ -50,7 +51,14 @@ export function Discover() {
search: search,
pageParam: search.search ? 'page' : 'before_mid'
};
- return (