From e26d2537c7410c93bb041d77c3b19ea0a2a15e37 Mon Sep 17 00:00:00 2001 From: Fang Date: Wed, 5 Feb 2020 18:13:22 +0100 Subject: [PATCH] link: remove trailing whitespace --- .../src/js/components/lib/channel-sidebar.js | 10 ++--- .../link/src/js/components/lib/comments.js | 6 +-- .../link/src/js/components/lib/link-item.js | 6 +-- .../link/src/js/components/lib/link-submit.js | 2 +- pkg/interface/link/src/js/components/link.js | 39 +++++++++---------- .../link/src/js/components/links-list.js | 4 +- pkg/interface/link/src/js/components/root.js | 12 +++--- pkg/interface/link/src/js/reducers/initial.js | 2 +- .../link/src/js/reducers/permission-update.js | 2 +- 9 files changed, 41 insertions(+), 42 deletions(-) diff --git a/pkg/interface/link/src/js/components/lib/channel-sidebar.js b/pkg/interface/link/src/js/components/lib/channel-sidebar.js index d7ebe33b25..2b5a1d57e2 100644 --- a/pkg/interface/link/src/js/components/lib/channel-sidebar.js +++ b/pkg/interface/link/src/js/components/lib/channel-sidebar.js @@ -56,9 +56,9 @@ export class ChannelsSidebar extends Component { let activeClasses = (this.props.active === "channels") ? " " : "dn-s "; let hiddenClasses = true; - + // probably a more concise way to write this - + if (this.props.popout) { hiddenClasses = false; } else { @@ -73,10 +73,10 @@ export class ChannelsSidebar extends Component { : "dn")}> ⟵ Landscape
-

Your Collections diff --git a/pkg/interface/link/src/js/components/lib/comments.js b/pkg/interface/link/src/js/components/lib/comments.js index 94b2256e87..0b1dcb8311 100644 --- a/pkg/interface/link/src/js/components/lib/comments.js +++ b/pkg/interface/link/src/js/components/lib/comments.js @@ -2,7 +2,7 @@ import React, { Component } from 'react' import { CommentItem } from './comment-item'; import { CommentsPagination } from './comments-pagination'; -import { uxToHex } from '../../lib/util'; +import { uxToHex } from '../../lib/util'; import { api } from '../../api'; export class Comments extends Component { @@ -37,7 +37,7 @@ export class Comments extends Component { render() { let props = this.props; - + let page = "page" + props.commentPage; let commentsObj = !!props.comments @@ -58,7 +58,7 @@ export class Comments extends Component { let commentObj = commentsPage[entry] let { ship, time, udon } = commentObj; - let members = !!props.members + let members = !!props.members ? props.members : {}; diff --git a/pkg/interface/link/src/js/components/lib/link-item.js b/pkg/interface/link/src/js/components/lib/link-item.js index f9210569a6..9eea287b1a 100644 --- a/pkg/interface/link/src/js/components/lib/link-item.js +++ b/pkg/interface/link/src/js/components/lib/link-item.js @@ -46,7 +46,7 @@ export class LinkItem extends Component { } let comments = props.comments + " comment" + ((props.comments === 1) ? "" : "s"); - + return (
- {(props.nickname) - ? props.nickname + {(props.nickname) + ? props.nickname : "~" + props.ship} {this.state.timeSinceLinkPost}