about summary refs log tree commit diff
path: root/app/assets/javascripts/components/features/status/containers/card_container.jsx
blob: 5c8bfeec2a3dfe4449ba835717421428244e560c (plain) (blame)
1
2
3
4
5
6
7
8
import { connect } from 'react-redux';
import Card from '../components/card';

const mapStateToProps = (state, { statusId }) => ({
  card: state.getIn(['cards', statusId], null)
});

export default connect(mapStateToProps)(Card);