diff options
author | Vitaly Takmazov | 2022-10-28 16:06:35 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:58 +0300 |
commit | e9ed990c111703fb17e8dcd987e0891fad00938e (patch) | |
tree | 9ff7f8a1955faccff1f2ab6c2e34549e3a681237 /vnext/src/ui/Feeds.js | |
parent | 3409533af2ab17da39bdef42febe167f9c8a283f (diff) |
Tweak `eslint` configuration
Diffstat (limited to 'vnext/src/ui/Feeds.js')
-rw-r--r-- | vnext/src/ui/Feeds.js | 12 |
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, |