aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/ui')
-rw-r--r--vnext/src/ui/Feeds.js12
1 files changed, 6 insertions, 6 deletions
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,