Browse Source

feature(network): add network route

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
19333e37c5
  1. 8
      app/components/Nav/Nav.js
  2. BIN
      app/icons/1024x1024.png
  3. BIN
      app/icons/128x128.png
  4. BIN
      app/icons/16x16.png
  5. BIN
      app/icons/24x24.png
  6. BIN
      app/icons/256x256.png
  7. BIN
      app/icons/32x32.png
  8. BIN
      app/icons/48x48.png
  9. BIN
      app/icons/512x512.png
  10. BIN
      app/icons/64x64.png
  11. BIN
      app/icons/96x96.png
  12. 1
      app/icons/globe.svg
  13. 2
      app/routes.js
  14. 18
      app/routes/network/components/Network.js
  15. 0
      app/routes/network/components/Network.scss
  16. 10
      app/routes/network/containers/NetworkContainer.js
  17. 3
      app/routes/network/index.js

8
app/components/Nav/Nav.js

@ -7,6 +7,7 @@ import walletIcon from 'icons/wallet.svg'
import peersIcon from 'icons/peers.svg'
import channelsIcon from 'icons/channels.svg'
import settingsIcon from 'icons/settings.svg'
import globeIcon from 'icons/globe.svg'
import styles from './Nav.scss'
@ -38,6 +39,13 @@ const Nav = ({ openPayForm, openRequestForm }) => (
<span>Channels</span>
</li>
</NavLink>
<NavLink exact to='/network' activeClassName={styles.active} className={styles.link}>
<span className={styles.activeBorder} />
<li>
<Isvg styles={{ verticalAlign: 'middle' }} src={globeIcon} />
<span>Network</span>
</li>
</NavLink>
</ul>
<div className={styles.buttons}>
<div className={`buttonPrimary ${styles.button}`} onClick={openPayForm}>

BIN
app/icons/1024x1024.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 156 KiB

BIN
app/icons/128x128.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

BIN
app/icons/16x16.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 954 B

BIN
app/icons/24x24.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

BIN
app/icons/256x256.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

BIN
app/icons/32x32.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

BIN
app/icons/48x48.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

BIN
app/icons/512x512.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

BIN
app/icons/64x64.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

BIN
app/icons/96x96.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

1
app/icons/globe.svg

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-globe"><circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path></svg>

After

Width:  |  Height:  |  Size: 409 B

2
app/routes.js

@ -5,12 +5,14 @@ import App from './routes/app'
import Activity from './routes/activity'
import Peers from './routes/peers'
import Channels from './routes/channels'
import Network from './routes/network'
export default () => (
<App>
<Switch>
<Route path='/peers' component={Peers} />
<Route path='/channels' component={Channels} />
<Route path='/network' component={Network} />
<Route path='/' component={Activity} />
</Switch>
</App>

18
app/routes/network/components/Network.js

@ -0,0 +1,18 @@
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import styles from './Network.scss'
class Network extends Component {
render() {
const {} = this.props
return (
<h1>network</h1>
)
}
}
Network.propTypes = {}
export default Network

0
app/routes/network/components/Network.scss

10
app/routes/network/containers/NetworkContainer.js

@ -0,0 +1,10 @@
import { withRouter } from 'react-router'
import { connect } from 'react-redux'
import Network from '../components/Network'
const mapDispatchToProps = {}
const mapStateToProps = state => ({})
export default withRouter(connect(mapStateToProps, mapDispatchToProps)(Network))

3
app/routes/network/index.js

@ -0,0 +1,3 @@
import NetworkContainer from './containers/NetworkContainer'
export default NetworkContainer
Loading…
Cancel
Save