From d4bd0dffbeed828857c7dbeac78e3118271a4087 Mon Sep 17 00:00:00 2001 From: Collin Barrett Date: Sat, 24 Mar 2018 10:07:41 -0500 Subject: [PATCH] remove react-modal ref, simplify expander fetch ref #265 --- src/FilterLists.Web/ClientApp/boot.tsx | 5 +---- src/FilterLists.Web/ClientApp/components/ListDetails.tsx | 3 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/FilterLists.Web/ClientApp/boot.tsx b/src/FilterLists.Web/ClientApp/boot.tsx index 5e0e276c1..508f8a698 100644 --- a/src/FilterLists.Web/ClientApp/boot.tsx +++ b/src/FilterLists.Web/ClientApp/boot.tsx @@ -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("./routes").routes; renderApp(); }); -} - -ReactModal.setAppElement("#react-app"); \ No newline at end of file +} \ No newline at end of file diff --git a/src/FilterLists.Web/ClientApp/components/ListDetails.tsx b/src/FilterLists.Web/ClientApp/components/ListDetails.tsx index 154d0af35..ca4e71f83 100644 --- a/src/FilterLists.Web/ClientApp/components/ListDetails.tsx +++ b/src/FilterLists.Web/ClientApp/components/ListDetails.tsx @@ -9,9 +9,6 @@ export default class ListDetails extends React.Component { responseLoaded: false, listId: props.listId }; - } - - componentWillMount() { this.fetchData(); }