diff --git a/src/components/ManagerPage/AppSearchBar.js b/src/components/ManagerPage/AppSearchBar.js index 8d38b4f6..aac4aa75 100644 --- a/src/components/ManagerPage/AppSearchBar.js +++ b/src/components/ManagerPage/AppSearchBar.js @@ -1,6 +1,10 @@ // @flow import React, { PureComponent } from 'react' import styled from 'styled-components' +import { color, fontSize, space } from 'styled-system' +import fontFamily from 'styles/styled/fontFamily' + +import { ff } from 'styles/helpers' import Box from 'components/base/Box' import Search from 'components/base/Search' @@ -40,16 +44,26 @@ const SearchBarWrapper = styled(Box).attrs({ padding: 0 13px; ` -const Input = styled.input` - width: 100%; +const Input = styled.input.attrs({ + ff: 'Open Sans|SemiBold', + color: 'dark', + mx: 3, + fontSize: 4, +})` + ${space}; + ${fontFamily}; + ${fontSize}; + ${color}; + border: 0; - margin: 0 13px; flex: 1; outline: none; background: transparent; - color: black; - font-family: 'Open Sans'; - font-weight: 600; + + &::placeholder { + color: ${p => p.theme.colors.fog}; + ${() => ff('Open Sans|Regular')}; + } ` class AppSearchBar extends PureComponent { @@ -86,6 +100,7 @@ class AppSearchBar extends PureComponent { onChange={this.handleChange} onFocus={this.handleFocus(true)} onBlur={this.handleFocus(false)} + placeholder={'Search app'} /> {!!query && } diff --git a/src/components/ManagerPage/FirmwareUpdate.js b/src/components/ManagerPage/FirmwareUpdate.js index de7d4046..7b497a39 100644 --- a/src/components/ManagerPage/FirmwareUpdate.js +++ b/src/components/ManagerPage/FirmwareUpdate.js @@ -1,7 +1,7 @@ // @flow import logger from 'logger' -import React, { PureComponent } from 'react' +import React, { PureComponent, Fragment } from 'react' import isEqual from 'lodash/isEqual' import isEmpty from 'lodash/isEmpty' @@ -14,6 +14,9 @@ import Box, { Card } from 'components/base/Box' import Button from 'components/base/Button' import Text from 'components/base/Text' +import NanoS from 'icons/device/NanoS' +import CheckFull from 'icons/CheckFull' + let CACHED_LATEST_FIRMWARE = null type FirmwareInfos = { @@ -89,31 +92,49 @@ class FirmwareUpdate extends PureComponent { } render() { - const { t, ...props } = this.props + const { t, infos } = this.props const { latestFirmware } = this.state - if (!latestFirmware) { - return null - } - return ( - - - - {`${t('manager:latestFirmware')}: ${ - latestFirmware.name - }`} - + + + + + + + + + Ledger Nano S + + + + + + + Firmware {infos.version} + - - - + {latestFirmware && ( + + + {t('manager:latestFirmware', { version: latestFirmware.name })} + + + + )} + + {/* */} + ) } } diff --git a/src/components/ManagerPage/ManagerApp.js b/src/components/ManagerPage/ManagerApp.js index 36988230..8322814c 100644 --- a/src/components/ManagerPage/ManagerApp.js +++ b/src/components/ManagerPage/ManagerApp.js @@ -65,7 +65,7 @@ function ManagerApp(props: Props) {