changed setInfoPanelVisible to InfoPanelIsVisible in form gallery header
This commit is contained in:
parent
0965cd8685
commit
0904fa1da1
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user