From 2b52c17ec4c79c5f3ad46f3ec52c0586c5a62ffb Mon Sep 17 00:00:00 2001 From: meriadec Date: Fri, 8 Jun 2018 16:46:01 +0200 Subject: [PATCH] Pixel push session for Settings page and other stuff --- src/components/CurrentAddress/index.js | 16 ++++---- src/components/DeviceConnect/index.js | 2 +- src/components/OperationsList/index.js | 1 - .../SettingsPage/SettingsSection.js | 6 +-- .../SettingsPage/sections/Display.js | 40 ++++++++++--------- .../SettingsPage/sections/Profile.js | 17 +++++++- .../base/SideBar/SideBarListItem.js | 2 +- static/i18n/en/settings.yml | 4 ++ 8 files changed, 55 insertions(+), 33 deletions(-) diff --git a/src/components/CurrentAddress/index.js b/src/components/CurrentAddress/index.js index 98ac9bc8..89b60be9 100644 --- a/src/components/CurrentAddress/index.js +++ b/src/components/CurrentAddress/index.js @@ -19,7 +19,6 @@ import QRCode from 'components/base/QRCode' import IconCheck from 'icons/Check' import IconCopy from 'icons/Copy' import IconInfoCircle from 'icons/InfoCircle' -import IconShare from 'icons/Share' import IconShield from 'icons/Shield' const Container = styled(Box).attrs({ @@ -64,6 +63,8 @@ const Label = styled(Box).attrs({ ` const Footer = styled(Box).attrs({ + justify: 'center', + flow: 4, horizontal: true, mt: 4, })` @@ -82,13 +83,17 @@ const FooterButtonWrapper = styled(Box).attrs({ width: 55px; &:hover { - background-color: rgba(100, 144, 241, 0.1); + background-color: ${p => rgba(p.theme.colors.wallet, 0.1)}; color: ${p => p.theme.colors.dark}; svg { color: ${p => p.theme.colors.wallet}; } } + + &:active { + background-color: ${p => rgba(p.theme.colors.wallet, 0.15)}; + } ` const FooterButton = ({ @@ -100,7 +105,7 @@ const FooterButton = ({ label: string, onClick: Function, }) => ( - + {icon} @@ -203,16 +208,13 @@ class CurrentAddress extends PureComponent { )} {withFooter && (
- {withVerify && ( - } label="Verify" onClick={onVerify} /> - )} + } label="Verify" onClick={onVerify} /> ( } label="Copy" onClick={copy} /> )} /> - } label="Share" onClick={onShare} />
)} diff --git a/src/components/DeviceConnect/index.js b/src/components/DeviceConnect/index.js index 807884fa..882d745e 100644 --- a/src/components/DeviceConnect/index.js +++ b/src/components/DeviceConnect/index.js @@ -202,7 +202,7 @@ class DeviceConnect extends PureComponent { const hasMultipleDevices = devices.length > 1 return ( - + diff --git a/src/components/OperationsList/index.js b/src/components/OperationsList/index.js index 183a7d8d..4ddb36eb 100644 --- a/src/components/OperationsList/index.js +++ b/src/components/OperationsList/index.js @@ -13,7 +13,6 @@ import { import type { Account } from '@ledgerhq/live-common/lib/types' -import noop from 'lodash/noop' import keyBy from 'lodash/keyBy' import type { T } from 'types/common' diff --git a/src/components/SettingsPage/SettingsSection.js b/src/components/SettingsPage/SettingsSection.js index 4efc4199..7542e920 100644 --- a/src/components/SettingsPage/SettingsSection.js +++ b/src/components/SettingsPage/SettingsSection.js @@ -62,7 +62,7 @@ export function SettingsSectionHeader({ {title} - + {desc} @@ -101,11 +101,11 @@ export function SettingsSectionRow({ }) { return ( - + {title} - + {desc} diff --git a/src/components/SettingsPage/sections/Display.js b/src/components/SettingsPage/sections/Display.js index a0059e62..cc022161 100644 --- a/src/components/SettingsPage/sections/Display.js +++ b/src/components/SettingsPage/sections/Display.js @@ -13,6 +13,7 @@ import { import type { SettingsState as Settings } from 'reducers/settings' import type { T } from 'types/common' +import Box from 'components/base/Box' import ExchangeSelect from 'components/SelectExchange' import Select from 'components/base/Select' import RadioGroup from 'components/base/RadioGroup' @@ -152,29 +153,30 @@ class TabProfile extends PureComponent { title={t('settings:display.counterValue')} desc={t('settings:display.counterValueDesc')} > - (item ? item.name : '')} + renderSelected={item => item && item.name} + options={fiats} + value={cvOption} + /> + + - - + />