diff --git a/src/components/header/header.css b/src/components/header/header.css index 21ba04c14..e1da2cdea 100644 --- a/src/components/header/header.css +++ b/src/components/header/header.css @@ -31,10 +31,16 @@ } .menuItem { + padding: 0; +} + +.menuLink { text-decoration: none; text-align: left; width: 100%; height: 100%; line-height: 48px; color: rgba(0, 0, 0, 0.87); + padding-left: 16px; + padding-right: 16px; } diff --git a/src/components/header/header.js b/src/components/header/header.js index d0c471acd..f09c3cb7c 100644 --- a/src/components/header/header.js +++ b/src/components/header/header.js @@ -25,29 +25,29 @@ const Header = props => ( > { !props.account.isDelegate && - - + {props.t('Register as delegate')} } { !props.account.secondSignature && - - + {props.t('Register second passphrase')} } - - {props.t('Sign message')} + + {props.t('Sign message')} - - + {props.t('Verify message')} - - - {props.t('Settings')} + + + {props.t('Settings')} diff --git a/src/components/saveAccountButton/index.test.js b/src/components/saveAccountButton/index.test.js index f93e562f7..b3422cc06 100644 --- a/src/components/saveAccountButton/index.test.js +++ b/src/components/saveAccountButton/index.test.js @@ -25,7 +25,7 @@ describe('SaveAccountButtonHOC', () => { }); beforeEach(() => { - wrapper = mount(, { + wrapper = mount(, { context: { store, i18n }, childContextTypes: { store: PropTypes.object.isRequired, diff --git a/src/components/saveAccountButton/saveAccountButton.css b/src/components/saveAccountButton/saveAccountButton.css deleted file mode 100644 index 2e98680fb..000000000 --- a/src/components/saveAccountButton/saveAccountButton.css +++ /dev/null @@ -1,6 +0,0 @@ -.menuItem { - text-decoration: none; - text-align: left; - width: 100%; - color: rgba(0, 0, 0, 0.87); -} diff --git a/src/components/saveAccountButton/saveAccountButton.js b/src/components/saveAccountButton/saveAccountButton.js index 53230ea14..1ef4098b7 100644 --- a/src/components/saveAccountButton/saveAccountButton.js +++ b/src/components/saveAccountButton/saveAccountButton.js @@ -1,16 +1,15 @@ import { MenuItem } from 'react-toolbox/lib/menu'; import React from 'react'; import RelativeLink from '../relativeLink'; -import styles from './saveAccountButton.css'; -const SaveAccountButton = ({ account, savedAccounts, accountRemoved, t }) => +const SaveAccountButton = ({ account, savedAccounts, accountRemoved, t, theme }) => (savedAccounts.length > 0 ? : - - + + {t('Save account')} diff --git a/src/components/saveAccountButton/saveAccountButton.test.js b/src/components/saveAccountButton/saveAccountButton.test.js index 61a7486af..5e7239123 100644 --- a/src/components/saveAccountButton/saveAccountButton.test.js +++ b/src/components/saveAccountButton/saveAccountButton.test.js @@ -12,6 +12,10 @@ describe('SaveAccountButton', () => { const emptySavedAccounts = []; const savedAccounts = [account]; const props = { + theme: { + menuLink: 'some class', + menuItem: 'some other class', + }, account, accountRemoved: sinon.spy(), t: key => key,