Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Remove saveAccountButton and use route directly
Browse files Browse the repository at this point in the history
  • Loading branch information
slaweet committed Nov 8, 2017
1 parent c438b92 commit 097fcd8
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 136 deletions.
4 changes: 2 additions & 2 deletions src/components/dialog/dialogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ export default () => ({
title: i18next.t('New Account'),
component: Register,
},
'save-account': {
title: i18next.t('Remember this account'),
'saved-accounts': {
title: i18next.t('Saved accounts'),
component: SaveAccount,
},
settings: {
Expand Down
6 changes: 4 additions & 2 deletions src/components/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import React from 'react';
import grid from 'flexboxgrid/dist/flexboxgrid.css';

import PrivateWrapper from '../privateWrapper';
import SaveAccountButton from '../saveAccountButton';
import logo from '../../assets/images/LISK-nano.png';
import offlineStyle from '../offlineWrapper/offlineWrapper.css';
import styles from './header.css';
Expand Down Expand Up @@ -53,7 +52,10 @@ const Header = props => (
to='decrypt-message'>{props.t('Decrypt message')}</RelativeLink>
</MenuItem>
<MenuDivider />
<SaveAccountButton theme={styles} />
<MenuItem theme={styles}>
<RelativeLink className={`${styles.menuLink} save-account`}
to='saved-accounts'>{props.t('Saved accounts')}</RelativeLink>
</MenuItem>
<MenuItem theme={styles}>
<RelativeLink className={`settings ${styles.menuLink}`} to='settings'>{props.t('Settings')}</RelativeLink>
</MenuItem>
Expand Down
4 changes: 2 additions & 2 deletions src/components/header/header.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ describe('Header', () => {
expect(wrapper.find(Button)).to.have.length(1);
});

it('renders 9 RelativeLink components', () => {
expect(wrapper.find(RelativeLink)).to.have.length(9);
it('renders 10 RelativeLink components', () => {
expect(wrapper.find(RelativeLink)).to.have.length(10);
});

it('should have an image with source of "logo"', () => {
Expand Down
19 changes: 0 additions & 19 deletions src/components/saveAccountButton/index.js

This file was deleted.

45 changes: 0 additions & 45 deletions src/components/saveAccountButton/index.test.js

This file was deleted.

18 changes: 0 additions & 18 deletions src/components/saveAccountButton/saveAccountButton.js

This file was deleted.

48 changes: 0 additions & 48 deletions src/components/saveAccountButton/saveAccountButton.test.js

This file was deleted.

0 comments on commit 097fcd8

Please sign in to comment.