Created
June 8, 2017 21:18
-
-
Save fresh5447/70a5e88b2500163b616389269bcc970f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react' | |
| import ReactDOM from 'react-dom' | |
| import { createStore, combineReducers, applyMiddleware, compose } from 'redux' | |
| import userReducer from './redux/modules/users' | |
| import { BrowserRouter as Router, Route } from 'react-router-dom' | |
| import ApolloClient, { createNetworkInterface } from 'apollo-client' | |
| import { ApolloProvider } from 'react-apollo' | |
| require('./sharedStyles/main.css') | |
| import {CreatePostContainer, SandboxContainer, | |
| CreateUserContainer, ProfileContainer, | |
| DashboardContainer, TopNavigationContainer, | |
| SideNavigationContainer, TutorialsContainer, | |
| ResourcesContainer, AdminDashboardContainer, | |
| ContentManagerContainer, topNavDiv, AuthenticateContainer, | |
| ClassContainer, ViewSessionContainer, EditSessionContainer, | |
| NewSessionContainer, PostModuleContainer, PostModuleSectionContainer, | |
| PostResourceContainer, PostClassContainer, PostSprintContainer,SprintContainer | |
| } from './containers' | |
| ReactDOM.render(( | |
| <Router> | |
| <div className={topNavDiv}> | |
| <TopNavigationContainer /> | |
| <div className={MainHolder}> | |
| <div className={SideNav}> | |
| <SideNavigationContainer /> | |
| </div> | |
| <div className={appHolder}> | |
| <Route path='/dashboard' component={DashboardContainer} /> | |
| <Route exact path='/' component={DashboardContainer} /> | |
| <Route path='/auth' component={AuthenticateContainer} /> | |
| <Route path='/create' component={CreatePostContainer} /> | |
| <Route path='/profile' component={ProfileContainer} /> | |
| <Route path='/signup' component={CreateUserContainer} /> | |
| <Route path='/tutorials' component={TutorialsContainer} /> | |
| <Route path='/resources' component={ResourcesContainer} /> | |
| <Route path='/admin/dashboard' component={AdminDashboardContainer} /> | |
| <Route path='/admin/class/:class_id' component={ClassContainer} /> | |
| <Route path='/admin/manage_content' component={ContentManagerContainer} /> | |
| <Route path='/admin/session/new/:class_id' component={NewSessionContainer} /> | |
| <Route path='/admin/session/view/:session_id' component={ViewSessionContainer} /> | |
| <Route path='/admin/session/edit/:session_id' component={EditSessionContainer} /> | |
| <Route path='/admin/modules/new' component={PostModuleContainer} /> | |
| <Route path='/admin/modules/:module_id/section' component={PostModuleSectionContainer} /> | |
| <Route path='/admin/resources/new' component={PostResourceContainer} /> | |
| <Route path='/admin/classes/new' component={PostClassContainer} /> | |
| <Route path='/admin/sprints/new/:class_id' component={PostSprintContainer} /> | |
| <Route path='/admin/sprints/view/:sprint_id' component={SprintContainer} /> | |
| <Route path='/sandbox' component={SandboxContainer} /> | |
| </div> | |
| </div> | |
| </div> | |
| </Router> | |
| ), | |
| document.getElementById('root') | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment