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}`}>
<FaCircle style={{ verticalAlign: 'top' }} />
<span>
{
channel.active ?
'Online'
:
'Offline'
}
{channel.active ? 'Online' : 'Offline'}
</span>
</div>
<div className={styles.closeContainer}>

22
app/components/Contacts/ContactsForm.js

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

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

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

Loading…
Cancel
Save