795f0107d2
* Include preview cards in status entity in REST API * Display preview card in-stream * Improve in-stream display of preview cards
8 lines
242 B
JavaScript
8 lines
242 B
JavaScript
import { connect } from 'react-redux';
|
|
import Card from '../components/card';
|
|
|
|
const mapStateToProps = (state, { statusId }) => ({
|
|
card: state.getIn(['statuses', statusId, 'card'], null),
|
|
});
|
|
|
|
export default connect(mapStateToProps)(Card);
|