equal
deleted
inserted
replaced
5 import moment from 'moment'; |
5 import moment from 'moment'; |
6 import '../App.css'; |
6 import '../App.css'; |
7 import Navbar from './Navbar'; |
7 import Navbar from './Navbar'; |
8 import * as sessionsActions from '../actions/sessionsActions'; |
8 import * as sessionsActions from '../actions/sessionsActions'; |
9 import uuidV1 from 'uuid/v1'; |
9 import uuidV1 from 'uuid/v1'; |
|
10 import { ActionEnum } from '../constants'; |
10 |
11 |
11 class SessionList extends Component { |
12 class SessionList extends Component { |
12 |
13 |
13 state = { |
14 state = { |
14 showModal: false, |
15 showModal: false, |
83 } |
84 } |
84 } |
85 } |
85 |
86 |
86 function mapStateToProps(state, props) { |
87 function mapStateToProps(state, props) { |
87 return { |
88 return { |
88 sessions: state['sessions'].filter(session => !session.deleted) |
89 sessions: state.get('sessions').filter(session => session.get('action') !== ActionEnum.DELETED) |
89 }; |
90 }; |
90 } |
91 } |
91 |
92 |
92 function mapDispatchToProps(dispatch) { |
93 function mapDispatchToProps(dispatch) { |
93 return { |
94 return { |