1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-19 05:09:43 +02:00
planka/client/src/containers/StaticContainer.js

18 lines
402 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
2022-08-04 13:31:14 +02:00
import selectors from '../selectors';
import Static from '../components/Static';
const mapStateToProps = (state) => {
2022-12-26 21:10:50 +01:00
const { cardId, projectId } = selectors.selectPath(state);
const currentBoard = selectors.selectCurrentBoard(state);
return {
projectId,
2022-12-26 21:10:50 +01:00
cardId,
board: currentBoard,
};
};
export default connect(mapStateToProps)(Static);