Skip to content

Commit

Permalink
remove libs
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Feb 15, 2018
1 parent 37d0401 commit 380d78f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 35 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"react-dnd": "^2.5.4",
"react-dnd-html5-backend": "^2.5.4",
"react-dom": "^16.2.0",
"styled-components": "^3.1.6",
"styled-system": "^1.1.7",
"tachyons": "^4.9.1"
},
"devDependencies": {
Expand Down
63 changes: 30 additions & 33 deletions src/screens/menubar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, {Component} from 'react'
import {ipcRenderer} from 'electron'
import {DragDropContext} from 'react-dnd'
import HTML5Backend from 'react-dnd-html5-backend'
import { ThemeProvider } from 'styled-components'
import theme from 'ipfs-css/theme.json'

import Pane from '../components/Pane'
Expand Down Expand Up @@ -164,38 +163,36 @@ class Menubar extends Component {
}, 500)

return (
<ThemeProvider theme={theme}>
<div className='sans-serif flex overflow-hidden'>
<Menu>
<MenuOption
title='My Files'
icon='document'
active={this.state.route === 'files'}
onClick={() => this._changeRoute('files')} />

<MenuOption
title='Node Info'
icon='decentralization'
active={this.state.route === 'info'}
onClick={() => this._changeRoute('info')} />

<div className='mt-auto flex justify-around pv3 ph2'>
<Icon
onClick={() => this._changeRoute('settings')}
className='w2 h2 pointer dim'
name='settings'
color='navy' />

<Icon
onClick={() => ipcRenderer.send('stop-daemon')}
className='w2 h2 pointer dim'
name='power'
color='navy' />
</div>
</Menu>
{this._getRouteScreen()}
</div>
</ThemeProvider>
<div className='sans-serif flex overflow-hidden'>
<Menu>
<MenuOption
title='My Files'
icon='document'
active={this.state.route === 'files'}
onClick={() => this._changeRoute('files')} />

<MenuOption
title='Node Info'
icon='decentralization'
active={this.state.route === 'info'}
onClick={() => this._changeRoute('info')} />

<div className='mt-auto flex justify-around pv3 ph2'>
<Icon
onClick={() => this._changeRoute('settings')}
className='w2 h2 pointer dim'
name='settings'
color='navy' />

<Icon
onClick={() => ipcRenderer.send('stop-daemon')}
className='w2 h2 pointer dim'
name='power'
color='navy' />
</div>
</Menu>
{this._getRouteScreen()}
</div>
)
}
}
Expand Down

0 comments on commit 380d78f

Please sign in to comment.