mirror of
https://github.com/plankanban/planka.git
synced 2025-07-26 00:29:48 +02:00
15 lines
422 B
JavaScript
Executable file
15 lines
422 B
JavaScript
Executable file
import { connect } from 'react-redux';
|
|
|
|
import { currentModalSelector } from '../selectors';
|
|
import ModalTypes from '../constants/ModalTypes';
|
|
import Project from '../components/Project';
|
|
|
|
const mapStateToProps = (state) => {
|
|
const currentModal = currentModalSelector(state);
|
|
|
|
return {
|
|
isSettingsModalOpened: currentModal === ModalTypes.PROJECT_SETTINGS,
|
|
};
|
|
};
|
|
|
|
export default connect(mapStateToProps)(Project);
|