6d217dbc50
* Exclude default homepage data at compile time The youtuber IDs alone is pretty huge, and is unused in the `CUSTOM_HOMEPAGE=true` configuration. * Remove Desktop items and other cleanup - Moved constants out of the component. - Remove SIMPLE_SITE check. - Remove Desktop-only items * Sidebar: limit subscription and tag section ## Issue Too slow for huge lists ## Change Limit to 10 initially, and load everything on "Show more" * Fix makeSelectThumbnailForUri - Fix memo - Expose function to extract directly from claim if client already have it.
16 lines
553 B
JavaScript
16 lines
553 B
JavaScript
import { connect } from 'react-redux';
|
|
import {
|
|
makeSelectClaimForUri,
|
|
makeSelectTagInClaimOrChannelForUri,
|
|
selectThumbnailForUri,
|
|
} from 'redux/selectors/claims';
|
|
import LivestreamLayout from './view';
|
|
import { DISABLE_COMMENTS_TAG } from 'constants/tags';
|
|
|
|
const select = (state, props) => ({
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
|
thumbnail: selectThumbnailForUri(state, props.uri),
|
|
chatDisabled: makeSelectTagInClaimOrChannelForUri(props.uri, DISABLE_COMMENTS_TAG)(state),
|
|
});
|
|
|
|
export default connect(select)(LivestreamLayout);
|