Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.removeTransitionHook = props.router.addTransitionHook(() =>
this.props.active ? warningMessage : true
);
}
public componentWillUnmount() {
this.removeTransitionHook();
}
public render() {
return null;
}
}
const enhanced = withContext(({ localeBundles }) => ({ localeBundles }))(
withRouter(NavigationWarningContainer)
);
export default enhanced;
...ModerateNavigationContainer_story
...ModerateSearchBarContainer_story
}
moderationQueues(storyID: $storyID) {
...ModerateNavigationContainer_moderationQueues
}
}
`,
cacheConfig: { force: true },
prepareVariables: (params, match) => {
return {
storyID: match.params.storyID,
includeStory: Boolean(match.params.storyID),
};
},
})(withRouter(ModerateContainer));
export default enhanced;
return (
)
}}
)
}}
)
}
export const PreloadLink = withRouter(withContext(_PreloadLink))
...ModerateNavigationContainer_story
...ModerateSearchBarContainer_story
}
moderationQueues(storyID: $storyID) {
...ModerateNavigationContainer_moderationQueues
}
}
`,
cacheConfig: { force: true },
prepareVariables: (params, match) => {
return {
storyID: match.params.storyID,
includeStory: Boolean(match.params.storyID),
};
},
})(withRouter(ModerateContainer));
export default enhanced;
settings {
auth {
integrations {
local {
enabled
targetFilter {
admin
stream
}
}
}
}
}
}
`,
})(withRouter(withSetRedirectPathMutation(RedirectLoginContainer)));
export default enhanced;