aboutsummaryrefslogtreecommitdiff
path: root/vnext
diff options
context:
space:
mode:
Diffstat (limited to 'vnext')
-rw-r--r--vnext/src/index.js17
-rw-r--r--vnext/src/ui/Chat.js2
-rw-r--r--vnext/src/ui/Contacts.js2
-rw-r--r--vnext/src/ui/Feeds.js2
-rw-r--r--vnext/src/ui/Post.js2
-rw-r--r--vnext/src/ui/Settings.js2
-rw-r--r--vnext/src/ui/Thread.js2
-rw-r--r--vnext/src/ui/Users.js2
8 files changed, 17 insertions, 14 deletions
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 = () => (
<StrictMode>
- <VisitorProvider>
- <CookiesProvider>
- <BrowserRouter>
- <Juick {...props} />
- </BrowserRouter>
- </CookiesProvider>
- </VisitorProvider>
+ <HelmetProvider>
+ <VisitorProvider>
+ <CookiesProvider>
+ <BrowserRouter>
+ <Juick {...props} />
+ </BrowserRouter>
+ </CookiesProvider>
+ </VisitorProvider>
+ </HelmetProvider>
</StrictMode>
)
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