From 51c158da2ece5ff89bcd332fb354f06aed3c62c4 Mon Sep 17 00:00:00 2001 From: Corantin Noll Date: Sat, 26 Mar 2022 20:37:16 -0400 Subject: [PATCH 01/15] Dashboard with active quest count + piggy but hardcode total bounties USD value --- .../header => assets}/logo-title.tsx | 0 packages/react-app/src/assets/piggy.tsx | 1138 +++++++++++++++++ .../src/{components => assets}/quest-logo.tsx | 0 .../src/components/account/account-module.tsx | 2 +- .../react-app/src/components/dashboard.tsx | 69 + .../src/components/header/header-title.tsx | 2 +- .../react-app/src/components/main-view.tsx | 56 +- .../src/components/modals/quest-modal.tsx | 15 +- .../utils/transaction-progress-component.tsx | 2 +- .../src/queries/quest-entity.query.ts | 8 + .../react-app/src/services/quest.service.ts | 11 +- packages/react-app/src/utils/date.utils.ts | 2 + 12 files changed, 1269 insertions(+), 36 deletions(-) rename packages/react-app/src/{components/header => assets}/logo-title.tsx (100%) create mode 100644 packages/react-app/src/assets/piggy.tsx rename packages/react-app/src/{components => assets}/quest-logo.tsx (100%) create mode 100644 packages/react-app/src/components/dashboard.tsx diff --git a/packages/react-app/src/components/header/logo-title.tsx b/packages/react-app/src/assets/logo-title.tsx similarity index 100% rename from packages/react-app/src/components/header/logo-title.tsx rename to packages/react-app/src/assets/logo-title.tsx diff --git a/packages/react-app/src/assets/piggy.tsx b/packages/react-app/src/assets/piggy.tsx new file mode 100644 index 00000000..5f489156 --- /dev/null +++ b/packages/react-app/src/assets/piggy.tsx @@ -0,0 +1,1138 @@ +import styled from 'styled-components'; + +// #region StyledComponents +const WrapperStyled = styled.div` + height: 100%; +`; +// #endregion + +export default function Piggy() { + return ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ); +} diff --git a/packages/react-app/src/components/quest-logo.tsx b/packages/react-app/src/assets/quest-logo.tsx similarity index 100% rename from packages/react-app/src/components/quest-logo.tsx rename to packages/react-app/src/assets/quest-logo.tsx diff --git a/packages/react-app/src/components/account/account-module.tsx b/packages/react-app/src/components/account/account-module.tsx index dc8ea7ef..d84e4df1 100644 --- a/packages/react-app/src/components/account/account-module.tsx +++ b/packages/react-app/src/components/account/account-module.tsx @@ -165,7 +165,7 @@ function AccountModule({ compact = false }: Props) {