Browse Source

Merge pull request #868 from NastiaS/ui-polish-branch

manager firware card title and icon dynamic for nano and blue
master
Meriadec Pillet 7 years ago
committed by GitHub
parent
commit
53a8bd063f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      src/components/ManagerPage/FirmwareUpdate.js
  2. 2
      static/i18n/en/app.yml

13
src/components/ManagerPage/FirmwareUpdate.js

@ -26,6 +26,7 @@ import Box, { Card } from 'components/base/Box'
import Text from 'components/base/Text'
import NanoS from 'icons/device/NanoS'
import Blue from 'icons/device/Blue'
import CheckFull from 'icons/CheckFull'
import UpdateFirmwareButton from './UpdateFirmwareButton'
@ -38,6 +39,7 @@ export type ModalStatus = 'closed' | 'disclaimer' | 'install' | 'error' | 'succe
type Props = {
t: T,
deviceInfo: DeviceInfo,
device: Device,
}
type State = {
@ -123,21 +125,22 @@ class FirmwareUpdate extends PureComponent<Props, State> {
handleDisclaimerNext = () => this.setState({ modal: 'install' })
render() {
const { deviceInfo, t } = this.props
const { deviceInfo, t, device } = this.props
const { latestFirmware, modal, stepId, shouldFlash, ready } = this.state
return (
<Card p={4}>
<Box horizontal align="center" flow={2}>
<Box color="dark">
<NanoS size={30} />
{device.product === 'Blue' ? <Blue size={30} /> : <NanoS size={30} />}
</Box>
<Box>
<Box horizontal align="center">
<Text ff="Open Sans|SemiBold" fontSize={4} color="dark">
Ledger Nano S
{device.product === 'Blue'
? t('app:manager.firmware.titleBlue')
: t('app:manager.firmware.titleNano')}
</Text>
<Box color="wallet" style={{ marginLeft: 10 }}>
<Box color="wallet" ml={2}>
<Tooltip render={() => t('app:manager.yourDeviceIsGenuine')}>
<CheckFull size={13} color="wallet" />
</Tooltip>

2
static/i18n/en/app.yml

@ -218,6 +218,8 @@ manager:
help: Check on your device to see which apps are already installed
firmware:
installed: 'Firmware version {{version}}'
titleNano: Ledger Nano S
titleBlue: Ledger Blue
update: Update firmware
continue: Continue update
latest: 'Firmware version {{version}} is available'

Loading…
Cancel
Save