changed setInfoPanelVisible to InfoPanelIsVisible in form gallery header

This commit is contained in:
mushka 2022-09-09 13:19:05 +03:00
parent 0965cd8685
commit 0904fa1da1

View File

@ -20,7 +20,7 @@ const SectionHeaderContent = (props) => {
history,
match,
isInfoPanelVisible,
toggleInfoPanel,
setIsInfoPanelVisible,
setGallerySelected,
categoryType,
} = props;
@ -43,6 +43,10 @@ const SectionHeaderContent = (props) => {
);
};
const toggleInfoPanel = () => {
setIsInfoPanelVisible(!isInfoPanelVisible);
};
return (
<StyledContainer>
<IconButton
@ -72,12 +76,12 @@ const SectionHeaderContent = (props) => {
};
export default inject(({ auth, filesStore, oformsStore }) => {
const { toggleIsVisible, isVisible } = auth.infoPanelStore;
const { isVisible, setIsVisible } = auth.infoPanelStore;
const { categoryType } = filesStore;
const { setGallerySelected } = oformsStore;
return {
toggleInfoPanel: toggleIsVisible,
isInfoPanelVisible: isVisible,
setIsInfoPanelVisible: setIsVisible,
setGallerySelected,
categoryType,
};