From 12c6b4ca4edb59a94c2edac7f44d2d1c7dde088d Mon Sep 17 00:00:00 2001 From: Manuel Calavera Date: Thu, 1 Aug 2019 10:29:51 -0700 Subject: [PATCH] feat: blocks list and detail pages --- src/AppV2.js | 10 + src/v2/components/Blocks/Detail/index.jsx | 102 ++++++++++ src/v2/components/Blocks/Detail/styles.js | 92 +++++++++ src/v2/components/Blocks/Table/index.jsx | 155 +++++++++++++++ src/v2/components/Blocks/Table/styles.js | 98 +++++++++ src/v2/components/Blocks/index.jsx | 23 +++ src/v2/components/Blocks/styles.js | 8 + src/v2/components/HelpLink/styles.js | 3 +- .../components/Transactions/Table/index.jsx | 186 ++++++++++++++++++ .../components/Transactions/Table/styles.js | 91 +++++++++ src/v2/components/UI/TypeLabel/index.jsx | 18 ++ src/v2/components/UI/TypeLabel/styles.js | 41 ++++ src/v2/theme.js | 4 + 13 files changed, 830 insertions(+), 1 deletion(-) create mode 100644 src/v2/components/Blocks/Detail/index.jsx create mode 100644 src/v2/components/Blocks/Detail/styles.js create mode 100644 src/v2/components/Blocks/Table/index.jsx create mode 100644 src/v2/components/Blocks/Table/styles.js create mode 100644 src/v2/components/Blocks/index.jsx create mode 100644 src/v2/components/Blocks/styles.js create mode 100644 src/v2/components/Transactions/Table/index.jsx create mode 100644 src/v2/components/Transactions/Table/styles.js create mode 100644 src/v2/components/UI/TypeLabel/index.jsx create mode 100644 src/v2/components/UI/TypeLabel/styles.js diff --git a/src/AppV2.js b/src/AppV2.js index 65811885..fb07891d 100644 --- a/src/AppV2.js +++ b/src/AppV2.js @@ -19,6 +19,8 @@ const Validators = lazy(() => import('v2/components/Validators')); const ValidatorsAll = lazy(() => import('v2/components/Validators/All')); const ValidatorDetail = lazy(() => import('v2/components/Validators/Detail')); const TourDeSol = lazy(() => import('v2/components/TourDeSol')); +const Blocks = lazy(() => import('v2/components/Blocks')); +const BlockDetail = lazy(() => import('v2/components/Blocks/Detail')); const useStyles = makeStyles(theme => ({ root: { @@ -44,6 +46,12 @@ const useStyles = makeStyles(theme => ({ justifyContent: 'flex-end', padding: '0 8px', ...theme.mixins.toolbar, + [theme.breakpoints.down('md')]: { + minHeight: 85, + }, + [theme.breakpoints.up('md')]: { + minHeight: 50, + }, }, })); @@ -63,6 +71,8 @@ const App = () => { + +