fix: subnavigator not opening

This commit is contained in:
thecodrr
2020-03-11 12:23:01 +05:00
parent 057631ae4c
commit e1db2f0663
2 changed files with 6 additions and 6 deletions

View File

@@ -61,14 +61,14 @@ const Notebooks = props => {
);
};
const NotebooksContainer = props => {
const NotebooksContainer = () => {
useEffect(() => {
const NotebookNavigator = require("../navigation/navigators/nbnavigator")
.default;
if (!NotebookNavigator.restore(props)) {
if (!NotebookNavigator.restore()) {
NotebookNavigator.navigate("notebooks");
}
}, [props]);
}, []);
return (
<Flex
className="NotebookNavigator"

View File

@@ -46,14 +46,14 @@ const Tags = props => {
);
};
const TagsContainer = props => {
const TagsContainer = () => {
useEffect(() => {
const TagNavigator = require("../navigation/navigators/tagnavigator")
.default;
if (!TagNavigator.restore(props)) {
if (!TagNavigator.restore()) {
TagNavigator.navigate("tags");
}
}, [props]);
}, []);
return (
<Flex className="TagNavigator" flexDirection="column" flex="1 1 auto" />
);