mirror of
https://github.com/plankanban/planka.git
synced 2025-12-27 09:14:59 +03:00
Initial commit
This commit is contained in:
16
client/src/containers/ProjectWrapperContainer.js
Executable file
16
client/src/containers/ProjectWrapperContainer.js
Executable file
@@ -0,0 +1,16 @@
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { pathSelector } from '../selectors';
|
||||
import ProjectWrapper from '../components/ProjectWrapper';
|
||||
|
||||
const mapStateToProps = (state) => {
|
||||
const { cardId, boardId, projectId } = pathSelector(state);
|
||||
|
||||
return {
|
||||
isProjectNotFound: projectId === null,
|
||||
isBoardNotFound: boardId === null,
|
||||
isCardNotFound: cardId === null,
|
||||
};
|
||||
};
|
||||
|
||||
export default connect(mapStateToProps)(ProjectWrapper);
|
||||
Reference in New Issue
Block a user