From 5bdca9b9315c094e9186ae439b16607246e6c87c Mon Sep 17 00:00:00 2001 From: Teto Gomez Date: Mon, 18 Oct 2021 08:49:50 -0600 Subject: [PATCH 1/2] fix(webapp): fix several issues (#841) --- webapp/package.json | 1 + webapp/src/components/Card/index.js | 3 + webapp/src/components/Card/styles.js | 5 +- .../CompareTool/CompareGraphView.js | 2 +- webapp/src/components/CompareTool/styles.js | 13 ++- webapp/src/components/Sidebar/eosrate256.png | Bin 12714 -> 0 bytes webapp/src/components/Sidebar/index.js | 29 ++--- webapp/src/components/Sidebar/styles.js | 11 +- webapp/src/components/icon/logIcon.js | 14 +++ webapp/src/context/models/producers.js | 2 +- webapp/src/context/state.context.js | 9 +- webapp/src/index.js | 2 + webapp/src/language/en.json | 4 +- webapp/src/language/es.json | 2 + webapp/src/language/ko.json | 2 + .../BlockProducers/BlockProducerProfile.js | 9 +- .../BlockProducers/BlockProducerRate.js | 109 ++++++++++-------- webapp/src/routes/BlockProducers/styles.js | 25 +++- webapp/src/routes/Home/index.js | 2 + webapp/src/routes/Proxies/index.js | 2 +- webapp/src/routes/index.js | 38 +++--- webapp/src/utils/modeled-bp-data.js | 5 +- webapp/src/wdyr.js | 8 ++ webapp/yarn.lock | 9 +- 24 files changed, 192 insertions(+), 114 deletions(-) delete mode 100644 webapp/src/components/Sidebar/eosrate256.png create mode 100644 webapp/src/components/icon/logIcon.js create mode 100644 webapp/src/wdyr.js diff --git a/webapp/package.json b/webapp/package.json index 52711b02..08477251 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -95,6 +95,7 @@ "@babel/plugin-proposal-optional-chaining": "^7.13.8", "@babel/preset-env": "^7.13.10", "@babel/preset-react": "^7.12.13", + "@welldone-software/why-did-you-render": "^6.2.1", "customize-cra": "^1.0.0", "env-cmd": "^10.1.0", "eslint": "^7.22.0", diff --git a/webapp/src/components/Card/index.js b/webapp/src/components/Card/index.js index 4fa13944..96178708 100644 --- a/webapp/src/components/Card/index.js +++ b/webapp/src/components/Card/index.js @@ -171,6 +171,7 @@ const CardData = ({ {useRateButton && ( <>