Forgot a few lines of code.

This commit is contained in:
dgarrett01 2022-11-27 18:48:37 -05:00
parent 4eb8f97bc5
commit a82f78a865
2 changed files with 16 additions and 0 deletions

View file

@ -100,6 +100,21 @@ function ClaimListHeader(props: Props) {
? languageParam !== languageSetting && languageParam !== null ? languageParam !== languageSetting && languageParam !== null
: languageParam !== CS.LANGUAGES_ALL && languageParam !== null; : languageParam !== CS.LANGUAGES_ALL && languageParam !== null;
function getHideWatchedElem() {
return (
<div className={`claim-search__checkbox`}>
<FormField
name="hide_watched"
type="checkbox"
checked={hideWatched}
onChange={() => {
setHideWatched((prev) => !prev);
}}
/>
</div>
);
}
React.useEffect(() => { React.useEffect(() => {
if (action !== 'POP' && isFiltered()) { if (action !== 'POP' && isFiltered()) {
setExpanded(true); setExpanded(true);

View file

@ -6,6 +6,7 @@ import { Form, FormField } from 'component/common/form';
import Button from 'component/button'; import Button from 'component/button';
import Icon from 'component/common/icon'; import Icon from 'component/common/icon';
import classnames from 'classnames'; import classnames from 'classnames';
import usePersistedState from 'effects/use-persisted-state';
const CLAIM_TYPES = { const CLAIM_TYPES = {
[SEARCH_OPTIONS.INCLUDE_FILES]: 'Files', [SEARCH_OPTIONS.INCLUDE_FILES]: 'Files',