mirror of
https://github.com/plankanban/planka.git
synced 2025-12-25 09:15:00 +03:00
17 lines
466 B
JavaScript
Executable File
17 lines
466 B
JavaScript
Executable File
import { connect } from 'react-redux';
|
|
|
|
import { currentModalSelector } from '../selectors';
|
|
import ModalTypes from '../constants/ModalTypes';
|
|
import App from '../components/App';
|
|
|
|
const mapStateToProps = (state) => {
|
|
const currentModal = currentModalSelector(state);
|
|
|
|
return {
|
|
isUsersModalOpened: currentModal === ModalTypes.USERS,
|
|
isAddProjectModalOpened: currentModal === ModalTypes.ADD_PROJECT,
|
|
};
|
|
};
|
|
|
|
export default connect(mapStateToProps)(App);
|