Further reduce code differences with upstream (#2509)

This commit is contained in:
Claire authored and GitHub committed 2023-12-09 20:29:23 +01:00
1 parent 1ddf2012ee
commit a27abb4802
15 files changed
+102 -109

No files matched your search

@@ -16,7 +16,7 @@ const messages = defineMessages({
add: { id: 'lists.account.add', defaultMessage: 'Add to list' },
});
const mapStateToProps = (state, { listId, added }) => ({
const MapStateToProps = (state, { listId, added }) => ({
list: state.get('lists').get(listId),
added: typeof added === 'undefined' ? state.getIn(['listAdder', 'lists', 'items']).includes(listId) : added,
});
@@ -69,4 +69,4 @@ class List extends ImmutablePureComponent {
}
export default connect(mapStateToProps, mapDispatchToProps)(injectIntl(List));
export default connect(MapStateToProps, mapDispatchToProps)(injectIntl(List));