From 45a6ec6d12540e0209651eb67bfd38e29ba50bcd Mon Sep 17 00:00:00 2001 From: bartosz-lipinski <264380+bartosz-lipinski@users.noreply.github.com> Date: Tue, 22 Dec 2020 17:30:23 -0600 Subject: [PATCH] feat: add totals for overview pages --- src/components/LiquidateInput/index.tsx | 2 +- src/constants/labels.ts | 1 + src/hooks/useUserObligations.ts | 3 ++- src/models/index.ts | 1 + src/models/totals.ts | 13 +++++++++++++ src/views/borrow/item.tsx | 7 +++++-- src/views/borrow/itemStyle.less | 2 +- src/views/dashboard/deposit/index.tsx | 2 +- src/views/dashboard/obligation/index.tsx | 2 +- src/views/dashboard/style.less | 2 +- src/views/deposit/view/item.tsx | 14 ++++++++++---- src/views/deposit/view/itemStyle.less | 2 +- src/views/home/index.tsx | 16 +++------------- src/views/home/item.tsx | 12 ++++++++++-- src/views/home/itemStyle.less | 2 +- src/views/liquidate/style.less | 2 +- 16 files changed, 53 insertions(+), 30 deletions(-) create mode 100644 src/models/totals.ts diff --git a/src/components/LiquidateInput/index.tsx b/src/components/LiquidateInput/index.tsx index ecaea5a..10ec210 100644 --- a/src/components/LiquidateInput/index.tsx +++ b/src/components/LiquidateInput/index.tsx @@ -87,7 +87,7 @@ export const LiquidateInput = (props: { disabled={true} />