2019-06-28 09:27:55 +02:00
|
|
|
// @flow
|
|
|
|
import React from 'react';
|
|
|
|
import Page from 'component/page';
|
|
|
|
import TagsSelect from 'component/tagsSelect';
|
|
|
|
import ClaimList from 'component/claimList';
|
|
|
|
|
|
|
|
type Props = {
|
2019-06-27 08:18:45 +02:00
|
|
|
subscribedChannels: Array<Subscription>,
|
2019-06-28 09:27:55 +02:00
|
|
|
};
|
|
|
|
|
2019-06-27 08:18:45 +02:00
|
|
|
function FollowingEditPage(props: Props) {
|
2019-06-28 09:27:55 +02:00
|
|
|
const { subscribedChannels } = props;
|
2019-06-27 08:18:45 +02:00
|
|
|
const channelUris = subscribedChannels.map(({ uri }) => uri);
|
2019-06-28 09:27:55 +02:00
|
|
|
return (
|
|
|
|
<Page>
|
|
|
|
<div className="card">
|
2019-06-28 09:33:07 +02:00
|
|
|
<TagsSelect showClose={false} title={__('Customize Your Tags')} />
|
2019-06-28 09:27:55 +02:00
|
|
|
</div>
|
|
|
|
<div className="card">
|
2019-06-28 09:33:07 +02:00
|
|
|
<ClaimList header={<h1>{__('Channels You Follow')}</h1>} uris={channelUris} />
|
2019-06-28 09:27:55 +02:00
|
|
|
</div>
|
|
|
|
</Page>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2019-06-27 08:18:45 +02:00
|
|
|
export default FollowingEditPage;
|