From 98686f197a4f160d7e195b7edd5577414a00f7dc Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sat, 16 Dec 2017 18:08:04 +0000 Subject: [PATCH] Move all of the side menu items to one place. --- src/{ => SideMenu}/SideMenuJournals.tsx | 6 +++--- src/{SideMenu.tsx => SideMenu/index.tsx} | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) rename src/{ => SideMenu}/SideMenuJournals.tsx (92%) rename src/{SideMenu.tsx => SideMenu/index.tsx} (92%) diff --git a/src/SideMenuJournals.tsx b/src/SideMenu/SideMenuJournals.tsx similarity index 92% rename from src/SideMenuJournals.tsx rename to src/SideMenu/SideMenuJournals.tsx index df52c33..7236890 100644 --- a/src/SideMenuJournals.tsx +++ b/src/SideMenu/SideMenuJournals.tsx @@ -1,10 +1,10 @@ import * as React from 'react'; -import { ListItem } from './widgets/List'; +import { ListItem } from '../widgets/List'; -import * as EteSync from './api/EteSync'; +import * as EteSync from '../api/EteSync'; -import { JournalsData, CredentialsData } from './store'; +import { JournalsData, CredentialsData } from '../store'; class SideMenuJournals extends React.PureComponent { props: { diff --git a/src/SideMenu.tsx b/src/SideMenu/index.tsx similarity index 92% rename from src/SideMenu.tsx rename to src/SideMenu/index.tsx index 067a19f..61fb3f4 100644 --- a/src/SideMenu.tsx +++ b/src/SideMenu/index.tsx @@ -1,23 +1,23 @@ import * as React from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; -import { List, ListItem, ListSubheader, ListDivider } from './widgets/List'; +import { List, ListItem, ListSubheader, ListDivider } from '../widgets/List'; import ActionCode from 'material-ui/svg-icons/action/code'; import ActionHome from 'material-ui/svg-icons/action/home'; import ActionBugReport from 'material-ui/svg-icons/action/bug-report'; import ActionQuestionAnswer from 'material-ui/svg-icons/action/question-answer'; import LogoutIcon from 'material-ui/svg-icons/action/power-settings-new'; -const logo = require('./images/logo.svg'); +const logo = require('../images/logo.svg'); import SideMenuJournals from './SideMenuJournals'; -import { routeResolver, getPalette } from './App'; +import { routeResolver, getPalette } from '../App'; -import { store, JournalsType, StoreState, CredentialsData } from './store'; -import { logout } from './store/actions'; +import { store, JournalsType, StoreState, CredentialsData } from '../store'; +import { logout } from '../store/actions'; -import * as C from './constants'; +import * as C from '../constants'; interface PropsType { etesync: CredentialsData | null;