diff options
author | Vitaly Takmazov | 2019-03-04 19:11:12 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:54 +0300 |
commit | 8d88e399d68f892e073b9d075a3850953032fa3c (patch) | |
tree | c44d70670925e0d96c5c7e74d09934c9beedb7d0 /vnext/src | |
parent | 5e0b2264e306ffbda392e71e91298108ddec63f3 (diff) |
Fix linter configuration
Fix some linter warnings
Diffstat (limited to 'vnext/src')
-rw-r--r-- | vnext/src/components/Feeds.js | 4 | ||||
-rw-r--r-- | vnext/src/components/SearchBox.js | 2 | ||||
-rw-r--r-- | vnext/src/components/UploadButton.js | 4 | ||||
-rw-r--r-- | vnext/src/components/UserInfo.js | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/vnext/src/components/Feeds.js b/vnext/src/components/Feeds.js index d7ed1128..55a4c287 100644 --- a/vnext/src/components/Feeds.js +++ b/vnext/src/components/Feeds.js @@ -105,14 +105,14 @@ function Feed(props) { }).catch(ex => { setError(true); }); - } + }; let getPageParam = (pageParam, lastMessage, filterParams) => { const pageValue = pageParam === 'before_mid' ? lastMessage.mid : pageParam === 'page' ? (Number(filterParams.page) || 0) + 1 : moment.utc(lastMessage.updated).valueOf(); let newFilter = { ...filterParams }; newFilter[pageParam] = pageValue; return `?${qs.stringify(newFilter)}`; - } + }; const { tag } = qs.parse(location.search.substring(1) || {}); const nodes = ( <> diff --git a/vnext/src/components/SearchBox.js b/vnext/src/components/SearchBox.js index edd7dfcf..a79100cd 100644 --- a/vnext/src/components/SearchBox.js +++ b/vnext/src/components/SearchBox.js @@ -8,7 +8,7 @@ function SearchBox({ onSearch, history, pathname }) { let onSubmit = (event) => { event.preventDefault(); onSearch(history, pathname, formState.values.search); - } + }; const [formState, { text }] = useFormState(); return ( <form onSubmit={onSubmit}> diff --git a/vnext/src/components/UploadButton.js b/vnext/src/components/UploadButton.js index 115ff32e..73cbbfcf 100644 --- a/vnext/src/components/UploadButton.js +++ b/vnext/src/components/UploadButton.js @@ -11,10 +11,10 @@ export default function UploadButton(props) { } else { input.click(); } - } + }; let attachmentChanged = (event) => { props.onChange(event.target.value); - } + }; return ( <div style={props.value ? activeStyle : inactiveStyle} onClick={openfile}> diff --git a/vnext/src/components/UserInfo.js b/vnext/src/components/UserInfo.js index 45adcc4e..0012d2a8 100644 --- a/vnext/src/components/UserInfo.js +++ b/vnext/src/components/UserInfo.js @@ -85,7 +85,7 @@ export function UserLink(props) { user.uid ? <Link key={user.uid} to={`/${user.uname}/`} className="info-avatar"><img src={user.avatar}/>{user.uname}</Link> : <a href={user.uri}><img src={user.avatar}/>{user.uname}</a> - ) + ); } UserInfo.propTypes = { @@ -96,4 +96,4 @@ UserInfo.propTypes = { UserLink.propTypes = { user: UserType.isRequired -} +}; |