Fixed combine related contents
This commit is contained in:
parent
c6ee213903
commit
9a3d76a356
|
@ -61,9 +61,12 @@ const Contents = ({
|
||||||
toggleState: toggleKeepInfoVisible,
|
toggleState: toggleKeepInfoVisible,
|
||||||
setState: setKeepInfoVisible,
|
setState: setKeepInfoVisible,
|
||||||
} = useBoolean(DEFAULT_FILTERS_STATE.keepInfoVisible);
|
} = useBoolean(DEFAULT_FILTERS_STATE.keepInfoVisible);
|
||||||
const [combineRelatedContent, setCombineRelatedContent] = useState(
|
|
||||||
DEFAULT_FILTERS_STATE.combineRelatedContent
|
const {
|
||||||
);
|
state: combineRelatedContent,
|
||||||
|
toggleState: toggleCombineRelatedContent,
|
||||||
|
setState: setCombineRelatedContent,
|
||||||
|
} = useBoolean(DEFAULT_FILTERS_STATE.combineRelatedContent);
|
||||||
const [searchName, setSearchName] = useState(
|
const [searchName, setSearchName] = useState(
|
||||||
DEFAULT_FILTERS_STATE.searchName
|
DEFAULT_FILTERS_STATE.searchName
|
||||||
);
|
);
|
||||||
|
@ -174,7 +177,7 @@ const Contents = ({
|
||||||
input={
|
input={
|
||||||
<Switch
|
<Switch
|
||||||
value={effectiveCombineRelatedContent}
|
value={effectiveCombineRelatedContent}
|
||||||
onClick={toggleKeepInfoVisible}
|
onClick={toggleCombineRelatedContent}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
@ -208,9 +211,19 @@ const Contents = ({
|
||||||
groupingMethod,
|
groupingMethod,
|
||||||
hoverable,
|
hoverable,
|
||||||
keepInfoVisible,
|
keepInfoVisible,
|
||||||
langui,
|
langui.always_show_info,
|
||||||
|
langui.category,
|
||||||
|
langui.combine_related_contents,
|
||||||
|
langui.contents,
|
||||||
|
langui.contents_description,
|
||||||
|
langui.group_by,
|
||||||
|
langui.reset_all_filters,
|
||||||
|
langui.search_title,
|
||||||
|
langui.type,
|
||||||
searchName,
|
searchName,
|
||||||
|
setCombineRelatedContent,
|
||||||
setKeepInfoVisible,
|
setKeepInfoVisible,
|
||||||
|
toggleCombineRelatedContent,
|
||||||
toggleKeepInfoVisible,
|
toggleKeepInfoVisible,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue