Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Mar 22, 2018
1 parent a882647 commit b878921
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 20 deletions.
14 changes: 5 additions & 9 deletions src/panes/Files.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ class Files extends Component {
return connectDropTarget(
<div>
<Pane className='files'>
<div>
<IconButton active={this.state.sticky} onClick={this.toggleStickWindow} icon='eye' />
<IconButton onClick={this.selectFileDialog} icon='plus' />
<IconButton onClick={this.selectDirectoryDialog} icon='folder' />
</div>
<Header title={this.makeBreadcrumbs()} loading={this.props.adding} />

<div className='main'>
Expand All @@ -141,15 +146,6 @@ class Files extends Component {
<div className='dropper' style={dropper}>
Drop to upload to IPFS
</div>

<Footer>
<IconButton active={this.state.sticky} onClick={this.toggleStickWindow} icon='eye' />

<div className='right'>
<IconButton onClick={this.selectFileDialog} icon='plus' />
<IconButton onClick={this.selectDirectoryDialog} icon='folder' />
</div>
</Footer>
</Pane>
</div>
)
Expand Down
20 changes: 10 additions & 10 deletions src/screens/menubar.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import PaneContainer from '../components/PaneContainer'
import MenuOption from '../components/MenuOption'
import Menu from '../components/Menu'

import Peers from '../panes/Peers'
/* import Peers from '../panes/Peers'
import Pinned from '../panes/Pinned' */
import Loader from '../panes/Loader'
import Start from '../panes/Start'
import Files from '../panes/Files'
import Pinned from '../panes/Pinned'
import Info from '../panes/Info'
import Settings from '../panes/Settings'

Expand All @@ -25,7 +25,7 @@ const RUNNING = 'running'
const panes = [
{
id: 'info',
title: 'Info',
title: 'Home',
icon: 'ipfs'
},
{
Expand All @@ -37,12 +37,12 @@ const panes = [
id: 'pinned',
title: 'Pin',
icon: 'pin'
}, */
},
{
id: 'peers',
title: 'Peers',
icon: 'pulse'
},
}, */
{
id: 'settings',
title: 'Settings',
Expand Down Expand Up @@ -171,26 +171,26 @@ class Menubar extends Component {
root={this.state.files.root} />
case 'settings':
return <Settings settings={this.state.settings} />
case 'peers':
/* case 'peers':
var location = 'Unknown'
if (this.state.stats.node) {
location = this.state.stats.node.location
}
return <Peers peers={this.state.stats.peers} location={location} />
return <Peers peers={this.state.stats.peers} location={location} /> */
case 'info':
return (
<Info
node={this.state.stats.id}
bw={this.state.stats.bw}
repo={this.state.stats.repo} />
)
case 'pinned':
/* case 'pinned':
return (
<Pinned
files={this.state.pinned}
pinning={this.state.pinning} />
)
) */
default:
return (
<Pane className='left-pane'>
Expand Down Expand Up @@ -224,8 +224,8 @@ class Menubar extends Component {
render () {
return (
<PaneContainer>
{this._getRouteScreen()}
{this._getMenu()}
{this._getRouteScreen()}
</PaneContainer>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/styles/components/MenuOption.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
color: rgba(255, 255, 255, 0.4);
cursor: pointer;
transition: .2s ease all;
width: 25%;
width: 33%;
height: 4em;
}

Expand Down

0 comments on commit b878921

Please sign in to comment.