2e87b2fd22
Naomi
comment websockets
increase slow mode time to 5 seconds
fix to prevent duplicate comments
update livestream details
fix channel
pin electron boom
fix rebase
prune unused icons
updating meme
updating meme
update livestream for naomi
fix rebase
DigitalCashNetwork
remove electroboom pin
Slavguns
Joel
So he can edit his claims
add streamTypes param to claimTilesDiscover so following section can search for all types of content
fix typo
update meme
fixes
publish page fixes
pending
fix notifications
fix comments finally
fix claim preview
no mature for simplesite
Revert "no mature for simplesite"
This reverts commit 9f89242d85
.
fix livestream preview click
no mature on simple site
try fixing invite page crash
probably needs more changes.
49 lines
1.4 KiB
JavaScript
49 lines
1.4 KiB
JavaScript
// @flow
|
|
import * as PAGES from 'constants/pages';
|
|
import * as ICONS from 'constants/icons';
|
|
import { ORDER_BY_NEW } from 'constants/claim_search';
|
|
import React from 'react';
|
|
import ChannelsFollowingDiscoverPage from 'page/channelsFollowingDiscover';
|
|
import ClaimListDiscover from 'component/claimListDiscover';
|
|
import Page from 'component/page';
|
|
import Button from 'component/button';
|
|
import Icon from 'component/common/icon';
|
|
|
|
type Props = {
|
|
subscribedChannels: Array<Subscription>,
|
|
tileLayout: boolean,
|
|
};
|
|
|
|
function ChannelsFollowingPage(props: Props) {
|
|
const { subscribedChannels, tileLayout } = props;
|
|
const hasSubsribedChannels = subscribedChannels.length > 0;
|
|
|
|
return !hasSubsribedChannels ? (
|
|
<ChannelsFollowingDiscoverPage />
|
|
) : (
|
|
<Page noFooter fullWidthPage={tileLayout}>
|
|
<ClaimListDiscover
|
|
hideAdvancedFilter
|
|
tileLayout={tileLayout}
|
|
headerLabel={
|
|
<span>
|
|
<Icon icon={ICONS.SUBSCRIBE} size={10} />
|
|
{__('Following')}
|
|
</span>
|
|
}
|
|
defaultOrderBy={ORDER_BY_NEW}
|
|
channelIds={subscribedChannels.map((sub) => sub.uri.split('#')[1])}
|
|
meta={
|
|
<Button
|
|
icon={ICONS.SEARCH}
|
|
button="secondary"
|
|
label={__('Discover Channels')}
|
|
navigate={`/$/${PAGES.CHANNELS_FOLLOWING_DISCOVER}`}
|
|
/>
|
|
}
|
|
/>
|
|
</Page>
|
|
);
|
|
}
|
|
|
|
export default ChannelsFollowingPage;
|