Make columns itself scrollable, fix action creation when moving card, little refactoring
This commit is contained in:
@@ -1,16 +1,13 @@
|
||||
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,
|
||||
isUserSettingsModalOpened: currentModal === ModalTypes.USER_SETTINGS,
|
||||
isAddProjectModalOpened: currentModal === ModalTypes.ADD_PROJECT,
|
||||
currentModal,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user