From 85f5f91f36a3d7e3ce4a5935e710f609e3af0e34 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sat, 16 Dec 2017 16:09:31 +0000 Subject: [PATCH] Move the constants to their own module. --- src/App.tsx | 2 +- src/LoginForm.tsx | 2 +- src/Root.tsx | 2 +- src/SideMenu.tsx | 2 +- src/{Constants.tsx => constants/index.ts} | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename src/{Constants.tsx => constants/index.ts} (100%) diff --git a/src/App.tsx b/src/App.tsx index 2c7e630..3b78098 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -16,7 +16,7 @@ import SideMenu from './SideMenu'; import Root from './Root'; import { RouteResolver } from './routes'; -import * as C from './Constants'; +import * as C from './constants'; import * as store from './store'; const muiTheme = getMuiTheme({ diff --git a/src/LoginForm.tsx b/src/LoginForm.tsx index 551247d..0ea1710 100644 --- a/src/LoginForm.tsx +++ b/src/LoginForm.tsx @@ -6,7 +6,7 @@ import Toggle from 'material-ui/Toggle'; import { getPalette } from './App'; -import * as C from './Constants'; +import * as C from './constants'; interface FormErrors { errorEmail?: string; diff --git a/src/Root.tsx b/src/Root.tsx index 2503833..e7facd9 100644 --- a/src/Root.tsx +++ b/src/Root.tsx @@ -9,7 +9,7 @@ import LoginForm from './LoginForm'; import { store, StoreState, CredentialsType } from './store'; import { fetchCredentials } from './store/actions'; -import * as C from './Constants'; +import * as C from './constants'; class Root extends React.PureComponent { props: { diff --git a/src/SideMenu.tsx b/src/SideMenu.tsx index ec40cce..067a19f 100644 --- a/src/SideMenu.tsx +++ b/src/SideMenu.tsx @@ -17,7 +17,7 @@ import { routeResolver, getPalette } from './App'; 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; diff --git a/src/Constants.tsx b/src/constants/index.ts similarity index 100% rename from src/Constants.tsx rename to src/constants/index.ts