projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replaced getting top project list with more generic version
[arvados.git]
/
src
/
index.tsx
diff --git
a/src/index.tsx
b/src/index.tsx
index ae5395f5de9a2b1d1e832d796229330bba2d010b..0cb67f1d82771a985d0b0637078c7d8dbb62463d 100644
(file)
--- a/
src/index.tsx
+++ b/
src/index.tsx
@@
-8,18
+8,17
@@
import { Provider } from "react-redux";
import Workbench from './views/workbench/workbench';
import ProjectList from './components/project-list/project-list';
import './index.css';
import Workbench from './views/workbench/workbench';
import ProjectList from './components/project-list/project-list';
import './index.css';
-import { R
edirect, Route, RouteProps, Router, RouterProps
} from "react-router";
+import { R
oute
} from "react-router";
import createBrowserHistory from "history/createBrowserHistory";
import configureStore from "./store/store";
import { ConnectedRouter } from "react-router-redux";
import ApiToken from "./components/api-token/api-token";
import createBrowserHistory from "history/createBrowserHistory";
import configureStore from "./store/store";
import { ConnectedRouter } from "react-router-redux";
import ApiToken from "./components/api-token/api-token";
+import authActions from "./store/auth/auth-action";
+import { projectService } from "./services/services";
const history = createBrowserHistory();
const store = configureStore({
projects: [
const history = createBrowserHistory();
const store = configureStore({
projects: [
- { name: 'Mouse genome', createdAt: '2018-05-01' },
- { name: 'Human body', createdAt: '2018-05-01' },
- { name: 'Secret operation', createdAt: '2018-05-01' }
],
router: {
location: null
],
router: {
location: null
@@
-29,6
+28,9
@@
const store = configureStore({
}
}, history);
}
}, history);
+store.dispatch(authActions.INIT());
+store.dispatch<any>(projectService.getProjectList());
+
const App = () =>
<Provider store={store}>
<ConnectedRouter history={history}>
const App = () =>
<Provider store={store}>
<ConnectedRouter history={history}>