1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00
planka/client/src/containers/StaticContainer.js
2022-12-26 21:10:50 +01:00

17 lines
402 B
JavaScript

import { connect } from 'react-redux';
import selectors from '../selectors';
import Static from '../components/Static';
const mapStateToProps = (state) => {
const { cardId, projectId } = selectors.selectPath(state);
const currentBoard = selectors.selectCurrentBoard(state);
return {
projectId,
cardId,
board: currentBoard,
};
};
export default connect(mapStateToProps)(Static);