From 7e3017f3d96cede7630f18cbe1e696ad5d8fd8c2 Mon Sep 17 00:00:00 2001 From: Kumar Date: Sun, 19 Apr 2020 12:19:10 +0530 Subject: [PATCH 1/2] version 10: css changes and fixed console errors --- src/App.jsx | 17 +++++++++-------- src/component/AssetsSummary.jsx | 10 ---------- src/component/MainContent.jsx | 11 +++-------- src/component/MyHeader.jsx | 12 ++++++------ src/component/MySidebar.jsx | 23 +++++++++++++++-------- src/component/NavLink.jsx | 10 +++++++--- src/component/Utils.jsx | 2 +- src/css/App.css | 4 ++++ 8 files changed, 45 insertions(+), 44 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 473fded..9d1e929 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -30,12 +30,11 @@ class App extends Component { this.setState({ valuationPeriod: value }, - () => this.fetchServiceData()); + () => this.fetchServiceData()); } - fetchServiceData(){ - debugger + fetchServiceData() { fetch('http://192.168.0.112:8080/assets?valuationPeriod=' + this.state.valuationPeriod) .then(res => res.json()) .then((data) => { @@ -51,12 +50,14 @@ class App extends Component { render() { const { portfolioName, data } = this.state; return ( -
- -
+
+
+
+ +
- - + +