From e8744a1620d7761cf721f1cc21562ad2c6ec8e5c Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 8 Oct 2023 15:21:04 +0300 Subject: vnext: react-helmet -> react-helmet-async --- vnext/src/index.js | 17 ++++++++++------- vnext/src/ui/Chat.js | 2 +- vnext/src/ui/Contacts.js | 2 +- vnext/src/ui/Feeds.js | 2 +- vnext/src/ui/Post.js | 2 +- vnext/src/ui/Settings.js | 2 +- vnext/src/ui/Thread.js | 2 +- vnext/src/ui/Users.js | 2 +- 8 files changed, 17 insertions(+), 14 deletions(-) (limited to 'vnext') diff --git a/vnext/src/index.js b/vnext/src/index.js index 0c936257..77f152af 100644 --- a/vnext/src/index.js +++ b/vnext/src/index.js @@ -12,6 +12,7 @@ import { StrictMode, lazy } from 'react' import { createRoot, hydrateRoot } from 'react-dom/client' import { BrowserRouter } from 'react-router-dom' import { CookiesProvider } from 'react-cookie' +import { HelmetProvider } from 'react-helmet-async' import { VisitorProvider } from './ui/VisitorContext' @@ -20,13 +21,15 @@ const props = window.__PROPS__ ? JSON.parse(decodeURIComponent(escape(atob(windo const JuickApp = () => ( - - - - - - - + + + + + + + + + ) diff --git a/vnext/src/ui/Chat.js b/vnext/src/ui/Chat.js index 55b89d09..4556848c 100644 --- a/vnext/src/ui/Chat.js +++ b/vnext/src/ui/Chat.js @@ -11,7 +11,7 @@ import UserInfo from './UserInfo' import { getChat, pm } from '../api' import { useVisitor } from './VisitorContext' -import { Helmet } from 'react-helmet' +import { Helmet } from 'react-helmet-async' /** * diff --git a/vnext/src/ui/Contacts.js b/vnext/src/ui/Contacts.js index 1c23f042..8a67961c 100644 --- a/vnext/src/ui/Contacts.js +++ b/vnext/src/ui/Contacts.js @@ -1,5 +1,5 @@ import { useEffect, useState } from 'react' -import { Helmet } from 'react-helmet' +import { Helmet } from 'react-helmet-async' import { getChats } from '../api' diff --git a/vnext/src/ui/Feeds.js b/vnext/src/ui/Feeds.js index 086a910e..bb386e5a 100644 --- a/vnext/src/ui/Feeds.js +++ b/vnext/src/ui/Feeds.js @@ -12,7 +12,7 @@ import UserInfo from './UserInfo' import { getMessages } from '../api' import { useVisitor } from './VisitorContext' -import { Helmet } from 'react-helmet' +import { Helmet } from 'react-helmet-async' /** * @typedef {object} Query diff --git a/vnext/src/ui/Post.js b/vnext/src/ui/Post.js index 6f7d1e93..ed333236 100644 --- a/vnext/src/ui/Post.js +++ b/vnext/src/ui/Post.js @@ -6,7 +6,7 @@ import MessageInput from './MessageInput' import { post, update } from '../api' import { useVisitor } from './VisitorContext' -import { Helmet } from 'react-helmet' +import { Helmet } from 'react-helmet-async' /** * diff --git a/vnext/src/ui/Settings.js b/vnext/src/ui/Settings.js index 1205cd49..82a84be9 100644 --- a/vnext/src/ui/Settings.js +++ b/vnext/src/ui/Settings.js @@ -7,7 +7,7 @@ import Icon from './Icon' import UploadButton from './UploadButton' import Avatar from './Avatar' import { useVisitor } from './VisitorContext' -import { Helmet } from 'react-helmet' +import { Helmet } from 'react-helmet-async' /** * @param {{ onChange: Function }} props diff --git a/vnext/src/ui/Thread.js b/vnext/src/ui/Thread.js index b727b73d..61474153 100644 --- a/vnext/src/ui/Thread.js +++ b/vnext/src/ui/Thread.js @@ -8,7 +8,7 @@ import Spinner from './Spinner' import { getMessages, comment, update, post } from '../api' import { useVisitor } from './VisitorContext' -import { Helmet } from 'react-helmet' +import { Helmet } from 'react-helmet-async' /** * @type { import('../api').Message } */ diff --git a/vnext/src/ui/Users.js b/vnext/src/ui/Users.js index e4fcba1f..0ab9e44b 100644 --- a/vnext/src/ui/Users.js +++ b/vnext/src/ui/Users.js @@ -3,7 +3,7 @@ import { useParams } from 'react-router-dom' import UserInfo from './UserInfo' import Avatar from './Avatar' -import { Helmet } from 'react-helmet' +import { Helmet } from 'react-helmet-async' /** * Friends feed -- cgit v1.2.3