Browse Source

Update TopBar style

master
meriadec 7 years ago
parent
commit
980f240884
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 26
      src/components/TopBar.js

26
src/components/TopBar.js

@ -1,6 +1,6 @@
// @flow // @flow
import React, { PureComponent, Fragment } from 'react' import React, { PureComponent } from 'react'
import { connect } from 'react-redux' import { connect } from 'react-redux'
import { ipcRenderer } from 'electron' import { ipcRenderer } from 'electron'
@ -97,25 +97,23 @@ class TopBar extends PureComponent<Props, State> {
const { sync } = this.state const { sync } = this.state
return ( return (
<Fragment> <Box bg="white" px={2} noShrink style={{ height: 60, zIndex: 20 }} align="center" horizontal>
<Box bg="white" noShrink style={{ height: 60, zIndex: 20 }} align="center" horizontal> <Box grow>
<Box grow> {sync.progress === true
{sync.progress === true ? 'Synchronizing...'
? 'sync...' : sync.fail === true ? 'Synchronization fail :(' : 'Synchronisation finished!'}
: sync.fail === true ? 'sync fail :(' : 'sync finish!'}
</Box>
<Box justify="flex-end" horizontal>
{hasPassword && <LockApplication onLock={this.handleLock} />}
<CountDevices count={devices.length} />
</Box>
</Box> </Box>
</Fragment> <Box justify="flex-end" horizontal>
{hasPassword && <LockApplication onLock={this.handleLock} />}
<CountDevices count={devices.length} />
</Box>
</Box>
) )
} }
} }
const CountDevices = ({ count } = { count: Number }) => ( const CountDevices = ({ count } = { count: Number }) => (
<Box color="night" mr={20} horizontal flow={10}> <Box color="night" horizontal flow={10}>
<Box> <Box>
<DeviceIcon height={20} width={20} /> <DeviceIcon height={20} width={20} />
</Box> </Box>

Loading…
Cancel
Save