remove react-modal ref, simplify expander fetch

ref #265
This commit is contained in:
Collin Barrett 2018-03-24 10:07:41 -05:00
parent 451a439c31
commit d4bd0dffbe
2 changed files with 1 additions and 7 deletions

View file

@ -6,7 +6,6 @@ import { AppContainer } from "react-hot-loader";
import { BrowserRouter } from "react-router-dom";
import * as RoutesModule from "./routes";
let routes = RoutesModule.routes;
import * as ReactModal from "react-modal";
function renderApp() {
const baseUrl = document.getElementsByTagName("base")[0].getAttribute("href")!;
@ -26,6 +25,4 @@ if (module.hot) {
routes = require<typeof RoutesModule>("./routes").routes;
renderApp();
});
}
ReactModal.setAppElement("#react-app");
}

View file

@ -9,9 +9,6 @@ export default class ListDetails extends React.Component<any, any> {
responseLoaded: false,
listId: props.listId
};
}
componentWillMount() {
this.fetchData();
}