diff --git a/src/ts/@overflow/apikey/redux/saga/read.ts b/src/ts/@overflow/apikey/redux/saga/read.ts index 5a07b3c..da03379 100644 --- a/src/ts/@overflow/apikey/redux/saga/read.ts +++ b/src/ts/@overflow/apikey/redux/saga/read.ts @@ -2,7 +2,7 @@ import { SagaIterator } from 'redux-saga'; import { call, Effect, fork, put, takeLatest } from 'redux-saga/effects'; - +import AppContext from '@overflow/commons/context/AppContext'; import Action from '@overflow/commons/redux/Action'; import ApiKey from '../../api/model/ApiKey'; @@ -17,8 +17,8 @@ function* read(action: Action): SagaIterator { // type: types.SENDING_REQUEST, // payload: {sendingRequest: true}, // }); - - const retApikey = yield call(AppContext.getService().read, domain); + let apiKeyService = AppContext.getInstance().getPouch(ApiKeyService); + const retApikey = yield call({context: apiKeyService, fn: apiKeyService.read}, domain); // if (responseBody.token === undefined) { // throw new Error(MESSAGES.UNABLE_TO_FIND_TOKEN_IN_LOGIN_RESPONSE); diff --git a/src/ts/@overflow/app/views/layout/Layout.tsx b/src/ts/@overflow/app/views/layout/Layout.tsx deleted file mode 100644 index 5ad4405..0000000 --- a/src/ts/@overflow/app/views/layout/Layout.tsx +++ /dev/null @@ -1,53 +0,0 @@ -import * as React from 'react'; -import { Container, Menu, Sidebar, Segment, Icon, Breadcrumb, Grid, Dropdown } from 'semantic-ui-react'; -import { Header } from './Header'; -import { Footer } from './Footer'; -import LeftMenu from './LeftMenu'; - -// import { Routes } from './Routes'; - -import routes from '../../router'; - -import { Router } from 'react-router'; -import * as History from 'history'; - -import { Provider } from 'react-redux'; -import { ConnectedRouter } from 'react-router-redux'; -import { store, sagaMiddleware, history } from '../../redux/store'; - -// const history = History.createHashHistory(); - -export class Layout extends React.Component { - - constructor(props: any, context: any) { - super(props, context); - this.state = { - sidebar_visible: true, - notification_visible: false, - }; - } - - public onSidebar = () => { - this.setState({ notification_visible: !this.state.notification_visible, sidebar_visible: !this.state.sidebar_visible }); - } - - public render(): JSX.Element { - return ( - - - -
- - - {routes} - - -