2020-05-16 04:09:46 +05:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
|
|
2021-06-24 01:05:22 +05:00
|
|
|
import { currentBoardSelector, pathSelector } from '../selectors';
|
2020-05-29 19:31:19 +05:00
|
|
|
import Fixed from '../components/Fixed';
|
2020-05-16 04:09:46 +05:00
|
|
|
|
|
|
|
|
const mapStateToProps = (state) => {
|
|
|
|
|
const { projectId } = pathSelector(state);
|
2021-06-24 01:05:22 +05:00
|
|
|
const currentBoard = currentBoardSelector(state);
|
2020-05-16 04:09:46 +05:00
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
projectId,
|
2021-06-24 01:05:22 +05:00
|
|
|
board: currentBoard,
|
2020-05-16 04:09:46 +05:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2020-05-29 19:31:19 +05:00
|
|
|
export default connect(mapStateToProps)(Fixed);
|