mirror of
https://github.com/plankanban/planka.git
synced 2025-12-27 01:11:50 +03:00
17 lines
441 B
JavaScript
Executable File
17 lines
441 B
JavaScript
Executable File
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);
|