From a82f78a865dd96916df3b08d1018021775cfb451 Mon Sep 17 00:00:00 2001 From: dgarrett01 Date: Sun, 27 Nov 2022 18:48:37 -0500 Subject: [PATCH] Forgot a few lines of code. --- ui/component/claimListHeader/view.jsx | 15 +++++++++++++++ ui/component/searchOptions/view.jsx | 1 + 2 files changed, 16 insertions(+) diff --git a/ui/component/claimListHeader/view.jsx b/ui/component/claimListHeader/view.jsx index 2c3330831..cf276c9ba 100644 --- a/ui/component/claimListHeader/view.jsx +++ b/ui/component/claimListHeader/view.jsx @@ -100,6 +100,21 @@ function ClaimListHeader(props: Props) { ? languageParam !== languageSetting && languageParam !== null : languageParam !== CS.LANGUAGES_ALL && languageParam !== null; + function getHideWatchedElem() { + return ( +
+ { + setHideWatched((prev) => !prev); + }} + /> +
+ ); + } + React.useEffect(() => { if (action !== 'POP' && isFiltered()) { setExpanded(true); diff --git a/ui/component/searchOptions/view.jsx b/ui/component/searchOptions/view.jsx index 5a75c3c0c..39036e509 100644 --- a/ui/component/searchOptions/view.jsx +++ b/ui/component/searchOptions/view.jsx @@ -6,6 +6,7 @@ import { Form, FormField } from 'component/common/form'; import Button from 'component/button'; import Icon from 'component/common/icon'; import classnames from 'classnames'; +import usePersistedState from 'effects/use-persisted-state'; const CLAIM_TYPES = { [SEARCH_OPTIONS.INCLUDE_FILES]: 'Files',