mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
17 lines
402 B
JavaScript
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);
|