Forgot a few lines of code.
This commit is contained in:
parent
4eb8f97bc5
commit
a82f78a865
2 changed files with 16 additions and 0 deletions
|
@ -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);
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue