Skip to content

Commit

Permalink
Enable tile layout for 'Your Tags' page
Browse files Browse the repository at this point in the history
## Why
- Something I miss every time I switch to lbry.tv.
- Consistent with other search pages like Discover.
  • Loading branch information
infinite-persistence authored and Sean Yesmunt committed Dec 18, 2020
1 parent 4760f00 commit a0ec509
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ui/page/tagsFollowing/index.js
Expand Up @@ -3,11 +3,14 @@ import { selectFollowedTags } from 'redux/selectors/tags';
import { selectUserVerifiedEmail } from 'redux/selectors/user';
import { selectSubscriptions } from 'redux/selectors/subscriptions';
import DiscoverPage from './view';
import { makeSelectClientSetting } from 'redux/selectors/settings';
import { SETTINGS } from 'lbry-redux';

const select = state => ({
followedTags: selectFollowedTags(state),
subscribedChannels: selectSubscriptions(state),
email: selectUserVerifiedEmail(state),
tileLayout: makeSelectClientSetting(SETTINGS.TILE_LAYOUT)(state),
});

const perform = {};
Expand Down
9 changes: 8 additions & 1 deletion ui/page/tagsFollowing/view.jsx
Expand Up @@ -8,7 +8,13 @@ import Button from 'component/button';
import Icon from 'component/common/icon';
import * as CS from 'constants/claim_search';

function TagsFollowingPage() {
type Props = {
tileLayout: boolean,
};

function TagsFollowingPage(props: Props) {
const { tileLayout } = props;

return (
<Page noFooter fullWidthPage>
<ClaimListDiscover
Expand All @@ -20,6 +26,7 @@ function TagsFollowingPage() {
}
personalView
defaultTags={CS.TAGS_FOLLOWED}
tileLayout={tileLayout}
meta={
<Button
button="secondary"
Expand Down

0 comments on commit a0ec509

Please sign in to comment.