From 8d88e399d68f892e073b9d075a3850953032fa3c Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 4 Mar 2019 19:11:12 +0300 Subject: Fix linter configuration Fix some linter warnings --- vnext/src/components/Feeds.js | 4 ++-- vnext/src/components/SearchBox.js | 2 +- vnext/src/components/UploadButton.js | 4 ++-- vnext/src/components/UserInfo.js | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'vnext/src') 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 (