diff options
Diffstat (limited to 'vnext/src')
-rw-r--r-- | vnext/src/App.js | 3 | ||||
-rw-r--r-- | vnext/src/ui/Feeds.js | 12 |
2 files changed, 9 insertions, 6 deletions
diff --git a/vnext/src/App.js b/vnext/src/App.js index 79fde2d1..c542dec5 100644 --- a/vnext/src/App.js +++ b/vnext/src/App.js @@ -24,6 +24,9 @@ const elClassHidden = 'header--hidden'; const elClassTop = 'content--top'; +/** + * + */ export default function App({ footer }) { let contentRef = useRef(null); diff --git a/vnext/src/ui/Feeds.js b/vnext/src/ui/Feeds.js index c9199fa6..84319c28 100644 --- a/vnext/src/ui/Feeds.js +++ b/vnext/src/ui/Feeds.js @@ -1,4 +1,4 @@ -import { useState, useEffect, useLayoutEffect } from 'react'; +import { useState, useEffect } from 'react'; import { Link, useLocation, useParams, Navigate } from 'react-router-dom'; import qs from 'qs'; @@ -12,14 +12,14 @@ import UserInfo from './UserInfo'; import { getMessages } from '../api'; /** - * @typedef {Object} Query + * @typedef {object} Query * @property {string} baseUrl - * @property {Object=} search + * @property {object=} search * @property {string} pageParam */ /** - * @typedef {Object} PageProps + * @typedef {object} PageProps * @property {string=} search * @property {import('../api').SecureUser} visitor * @property {import('../api').Message[]=} msgs @@ -120,7 +120,7 @@ export function Home({ visitor }) { } /** - * @typedef {Object} FeedState + * @typedef {object} FeedState * @property { import('../api').SecureUser } visitor * @property { import('../api').Message[]= } msgs * @property { Query} query @@ -168,7 +168,7 @@ function Feed({ visitor, query }) { }; }); setLoading(false); - }).catch(ex => { + }).catch(() => { setState((prevState) => { return { ...prevState, |