Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
// which props do we want to inject, given the global store state?
// always use selectors here and avoid accessing the state directly
//function mapStateToProps(state) {
// const [postsById, postsIdArray] = postsSelectors.getPosts(state);
// return {
// postsById,
// postsIdArray,
// topicsByUrl: topicsSelectors.getSelectedTopicsByUrl(state),
// currentFilter: postsSelectors.getCurrentFilter(state),
// currentPost: postsSelectors.getCurrentPost(state)
// };
//}
export default connect(PostsScreen);
class App extends React.Component {
render() {
return (
<div>
{
topicsStore.getters.isFinishedTopicsSelection() ?
< PostsScreen />
:
< TopicsScreen />
}
</div>
);
}
}
export default connect(App);