Browse Source
fix(lints): Wrap multiline jsx in parens
renovate/lint-staged-8.x
Ben Woosley
7 years ago
No known key found for this signature in database
GPG Key ID: 6EE5F3785F78B345
3 changed files with
7 additions and
7 deletions
-
app/components/Network/ChannelsList.js
-
app/components/Network/PeersList.js
-
app/components/Network/TransactionForm.js
|
|
@ -7,7 +7,7 @@ import styles from './ChannelsList.scss' |
|
|
|
const ChannelsList = ({ channels, updateSelectedChannels, selectedChannelIds }) => ( |
|
|
|
<ul className={styles.channels}> |
|
|
|
{ |
|
|
|
channels.map(channel => |
|
|
|
channels.map(channel => ( |
|
|
|
<li key={channel.chan_id} className={styles.channel} onClick={() => updateSelectedChannels(channel)}> |
|
|
|
<span className={`${styles.dot} ${selectedChannelIds.includes(channel.chan_id) && styles.active}`} /> |
|
|
|
|
|
|
@ -32,7 +32,7 @@ const ChannelsList = ({ channels, updateSelectedChannels, selectedChannelIds }) |
|
|
|
</div> |
|
|
|
</section> |
|
|
|
</li> |
|
|
|
) |
|
|
|
)) |
|
|
|
} |
|
|
|
</ul> |
|
|
|
) |
|
|
|
|
|
@ -5,13 +5,13 @@ import styles from './PeersList.scss' |
|
|
|
const PeersList = ({ peers, updateSelectedPeers, selectedPeerPubkeys }) => ( |
|
|
|
<ul className={styles.peers}> |
|
|
|
{ |
|
|
|
peers.map(peer => |
|
|
|
peers.map(peer => ( |
|
|
|
<li key={peer.peer_id} className={styles.peer} onClick={() => updateSelectedPeers(peer)}> |
|
|
|
<span className={`${styles.dot} ${selectedPeerPubkeys.includes(peer.pub_key) && styles.active}`} /> |
|
|
|
<h1>{peer.address}</h1> |
|
|
|
<h4>{peer.pub_key}</h4> |
|
|
|
</li> |
|
|
|
) |
|
|
|
)) |
|
|
|
} |
|
|
|
</ul> |
|
|
|
) |
|
|
|
|
|
@ -24,8 +24,8 @@ const TransactionForm = ({ updatePayReq, pay_req, loadingRoutes, payReqRoutes, s |
|
|
|
|
|
|
|
<ul className={styles.routes}> |
|
|
|
{ |
|
|
|
payReqRoutes.map((route, index) => |
|
|
|
<li className={`${styles.route} ${currentRoute == route && styles.active}`} key={index} onClick={() => setCurrentRoute(route)}> |
|
|
|
payReqRoutes.map((route, index) => ( |
|
|
|
<li className={`${styles.route} ${currentRoute === route && styles.active}`} key={index} onClick={() => setCurrentRoute(route)}> |
|
|
|
<header> |
|
|
|
<h1>Route #{index + 1}</h1> |
|
|
|
<span>Hops: {route.hops.length}</span> |
|
|
@ -43,7 +43,7 @@ const TransactionForm = ({ updatePayReq, pay_req, loadingRoutes, payReqRoutes, s |
|
|
|
</section> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
) |
|
|
|
)) |
|
|
|
} |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|