From c743d78bee67696f1dcf78649390029e5befcdbd Mon Sep 17 00:00:00 2001 From: Vasek Mlejnsky Date: Thu, 16 Aug 2018 15:11:10 +0200 Subject: [PATCH] Cleanup --- .../views/Device/components/LeftNavigation/Container.js | 2 +- .../Device/components/LeftNavigation/Selection/index.js | 4 ++++ .../LeftNavigation/{LeftNavigation.js => index.js} | 9 ++++++--- 3 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 src/js/views/Device/components/LeftNavigation/Selection/index.js rename src/js/views/Device/components/LeftNavigation/{LeftNavigation.js => index.js} (94%) diff --git a/src/js/views/Device/components/LeftNavigation/Container.js b/src/js/views/Device/components/LeftNavigation/Container.js index 6c2ed692..c22d2b19 100644 --- a/src/js/views/Device/components/LeftNavigation/Container.js +++ b/src/js/views/Device/components/LeftNavigation/Container.js @@ -8,7 +8,7 @@ import * as TrezorConnectActions from 'actions/TrezorConnectActions'; import type { MapStateToProps, MapDispatchToProps } from 'react-redux'; import type { State, Dispatch } from 'flowtype'; -import LeftNavigation from './LeftNavigation'; +import LeftNavigation from './index'; type OwnProps = { diff --git a/src/js/views/Device/components/LeftNavigation/Selection/index.js b/src/js/views/Device/components/LeftNavigation/Selection/index.js new file mode 100644 index 00000000..2d5ec492 --- /dev/null +++ b/src/js/views/Device/components/LeftNavigation/Selection/index.js @@ -0,0 +1,4 @@ +export { default as AccountSelection } from './AccountSelection'; +export { default as CoinSelection } from './CoinSelection'; +export { DeviceSelect } from './DeviceSelection'; +export { DeviceDropdown } from './DeviceSelection'; diff --git a/src/js/views/Device/components/LeftNavigation/LeftNavigation.js b/src/js/views/Device/components/LeftNavigation/index.js similarity index 94% rename from src/js/views/Device/components/LeftNavigation/LeftNavigation.js rename to src/js/views/Device/components/LeftNavigation/index.js index 1f9cacf9..6554e706 100644 --- a/src/js/views/Device/components/LeftNavigation/LeftNavigation.js +++ b/src/js/views/Device/components/LeftNavigation/index.js @@ -4,9 +4,12 @@ import { TransitionGroup, CSSTransition } from 'react-transition-group'; import styled from 'styled-components'; import type { TrezorDevice } from 'flowtype'; -import { DeviceSelect, DeviceDropdown } from './selection/DeviceSelection'; -import AccountSelection from './selection/AccountSelection'; -import CoinSelection from './selection/CoinSelection'; +import { + AccountSelection, + CoinSelection, + DeviceSelect, + DeviceDropdown, +} from './Selection'; import StickyContainer from './StickyContainer'; import type { Props } from './index';