Browse Source

Merge pull request #169 from Empact/feature/friends

Fix some whitespace lint errors on the friends feature
renovate/lint-staged-8.x
JimmyMow 7 years ago
committed by GitHub
parent
commit
16432cc720
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      app/components/Contacts/ContactModal.js
  2. 22
      app/components/Contacts/ContactsForm.js
  3. 2
      app/routes/contacts/components/Contacts.js

7
app/components/Contacts/ContactModal.js

@ -55,12 +55,7 @@ const ContactModal = ({
<div className={`${styles.status} ${channel.active && styles.online}`}> <div className={`${styles.status} ${channel.active && styles.online}`}>
<FaCircle style={{ verticalAlign: 'top' }} /> <FaCircle style={{ verticalAlign: 'top' }} />
<span> <span>
{ {channel.active ? 'Online' : 'Offline'}
channel.active ?
'Online'
:
'Offline'
}
</span> </span>
</div> </div>
<div className={styles.closeContainer}> <div className={styles.closeContainer}>

22
app/components/Contacts/ContactsForm.js

@ -142,22 +142,22 @@ class ContactsForm extends React.Component {
<li key={node.pub_key}> <li key={node.pub_key}>
<section> <section>
{ {
node.alias.length > 0 ? node.alias.length > 0 ?
<h2> <h2>
<span>{node.alias.trim()}</span> <span>{node.alias.trim()}</span>
<span>({node.pub_key.substr(0, 10)}...{node.pub_key.substr(node.pub_key.length - 10)})</span> <span>({node.pub_key.substr(0, 10)}...{node.pub_key.substr(node.pub_key.length - 10)})</span>
</h2> </h2>
: :
<h2> <h2>
<span>{node.pub_key}</span> <span>{node.pub_key}</span>
</h2> </h2>
} }
</section> </section>
<section> <section>
{renderRightSide(node)} {renderRightSide(node)}
</section> </section>
</li> </li>
)) ))
} }
</ul> </ul>
</div> </div>

2
app/routes/contacts/components/Contacts.js

@ -164,7 +164,7 @@ class Contacts extends Component {
} else if (!channel.active) { } else if (!channel.active) {
return <OfflineContact channel={channel} key={index} openContactModal={openContactModal} /> return <OfflineContact channel={channel} key={index} openContactModal={openContactModal} />
} }
return <span /> return <span />
}) })
} }
</ul> </ul>

Loading…
Cancel
Save