Enable tile layout for 'Your Tags' page
## Why - Something I miss every time I switch to lbry.tv. - Consistent with other search pages like Discover.
This commit is contained in:
parent
4760f00050
commit
a0ec5097d9
2 changed files with 11 additions and 1 deletions
|
@ -3,11 +3,14 @@ import { selectFollowedTags } from 'redux/selectors/tags';
|
||||||
import { selectUserVerifiedEmail } from 'redux/selectors/user';
|
import { selectUserVerifiedEmail } from 'redux/selectors/user';
|
||||||
import { selectSubscriptions } from 'redux/selectors/subscriptions';
|
import { selectSubscriptions } from 'redux/selectors/subscriptions';
|
||||||
import DiscoverPage from './view';
|
import DiscoverPage from './view';
|
||||||
|
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
||||||
|
import { SETTINGS } from 'lbry-redux';
|
||||||
|
|
||||||
const select = state => ({
|
const select = state => ({
|
||||||
followedTags: selectFollowedTags(state),
|
followedTags: selectFollowedTags(state),
|
||||||
subscribedChannels: selectSubscriptions(state),
|
subscribedChannels: selectSubscriptions(state),
|
||||||
email: selectUserVerifiedEmail(state),
|
email: selectUserVerifiedEmail(state),
|
||||||
|
tileLayout: makeSelectClientSetting(SETTINGS.TILE_LAYOUT)(state),
|
||||||
});
|
});
|
||||||
|
|
||||||
const perform = {};
|
const perform = {};
|
||||||
|
|
|
@ -8,7 +8,13 @@ import Button from 'component/button';
|
||||||
import Icon from 'component/common/icon';
|
import Icon from 'component/common/icon';
|
||||||
import * as CS from 'constants/claim_search';
|
import * as CS from 'constants/claim_search';
|
||||||
|
|
||||||
function TagsFollowingPage() {
|
type Props = {
|
||||||
|
tileLayout: boolean,
|
||||||
|
};
|
||||||
|
|
||||||
|
function TagsFollowingPage(props: Props) {
|
||||||
|
const { tileLayout } = props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page noFooter fullWidthPage>
|
<Page noFooter fullWidthPage>
|
||||||
<ClaimListDiscover
|
<ClaimListDiscover
|
||||||
|
@ -20,6 +26,7 @@ function TagsFollowingPage() {
|
||||||
}
|
}
|
||||||
personalView
|
personalView
|
||||||
defaultTags={CS.TAGS_FOLLOWED}
|
defaultTags={CS.TAGS_FOLLOWED}
|
||||||
|
tileLayout={tileLayout}
|
||||||
meta={
|
meta={
|
||||||
<Button
|
<Button
|
||||||
button="secondary"
|
button="secondary"
|
||||||
|
|
Loading…
Reference in a new issue