2020-05-16 04:09:46 +05:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
|
|
2022-08-04 13:31:14 +02:00
|
|
|
import selectors 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) => {
|
2022-08-04 13:31:14 +02:00
|
|
|
const { projectId } = selectors.selectPath(state);
|
|
|
|
|
const currentBoard = selectors.selectCurrentBoard(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);
|