cleanup and add tags to publish page

This commit is contained in:
Sean Yesmunt 2019-06-26 13:31:15 -04:00
parent 1a18cf5827
commit be85c74b2a
4 changed files with 20 additions and 3 deletions

View file

@ -77,10 +77,10 @@ const Button = forwardRef<any, {}>((props: Props, ref: any) => {
const content = (
<span className="button__content">
{icon && <Icon icon={icon} iconColor={iconColor} size={iconSize} />}
{icon && <Icon icon={icon} size={iconSize} />}
{label && <span className="button__label">{label}</span>}
{children && children}
{iconRight && <Icon icon={iconRight} iconColor={iconColor} size={iconSize} />}
{iconRight && <Icon icon={iconRight} size={iconSize} />}
</span>
);

View file

@ -0,0 +1,16 @@
import { connect } from 'react-redux';
import { selectFollowedTags } from 'lbry-redux';
import { selectSubscriptions } from 'redux/selectors/subscriptions';
import TagsEdit from './view';
const select = state => ({
followedTags: selectFollowedTags(state),
subscribedChannels: selectSubscriptions(state),
});
const perform = {};
export default connect(
select,
perform
)(TagsEdit);

View file

@ -73,7 +73,8 @@ export default function SubscriptionsPage(props: Props) {
onClick={() => onClick()}
/>
}
uris={viewingSuggestedSubs ? suggestedSubscriptions.map(sub => sub.uri) : uris}
// Fix the need to reverse this
uris={viewingSuggestedSubs ? suggestedSubscriptions.map(sub => sub.uri) : uris.reverse()}
/>
</div>
</Page>