Files
planka/client/src/containers/FixedContainer.js

17 lines
379 B
JavaScript
Raw Normal View History

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