diff options
author | Vitaly Takmazov | 2022-11-06 03:30:40 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:58 +0300 |
commit | 7b14a8f3faf7672f0aefbf93d5c37f62a169b535 (patch) | |
tree | b027f687d286316afd493c3cf3cbbbc7aedd7396 /vnext/src/ui/UserInfo.js | |
parent | 00ff146fb45b64aa3a4278c05e4a4c476152e2b4 (diff) |
Cleanup ESLint warnings
Diffstat (limited to 'vnext/src/ui/UserInfo.js')
-rw-r--r-- | vnext/src/ui/UserInfo.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vnext/src/ui/UserInfo.js b/vnext/src/ui/UserInfo.js index bcf5c20e..91e3b5cf 100644 --- a/vnext/src/ui/UserInfo.js +++ b/vnext/src/ui/UserInfo.js @@ -13,7 +13,8 @@ let isMounted; /** * User info component - * @param {{uname: string, onUpdate?: function, children?: import('react').ReactElement}} props + * + * @param {{uname: string, onUpdate?: Function, children?: import('react').ReactElement}} props */ export default function UserInfo({ uname, onUpdate, children }) { const [user, setUser] = useState({ @@ -66,6 +67,7 @@ export default function UserInfo({ uname, onUpdate, children }) { /** * User summary component + * * @param {{user: import('../api').User}} props */ function Summary({ user }) { @@ -90,6 +92,7 @@ const UserSummary = memo(Summary); /** * Link to user + * * @param {{ user: import('../api').User}} props */ export function UserLink(props) { @@ -107,7 +110,7 @@ export function UserLink(props) { uri: userRef.current.uri }); } - }).catch(reason => { + }).catch(() => { setUser({ uid: 0, uname: userRef.current.uri, |