From 0cab5aaaf659b54d6fe61c4c36e488aaa72b7b2b Mon Sep 17 00:00:00 2001 From: Edd Date: Thu, 29 Dec 2022 16:48:16 +0000 Subject: [PATCH] feat(explorer): messages formatting --- .../app/components/empty-list/empty-list.tsx | 33 ++++++++++--------- .../src/app/routes/blocks/id/block.tsx | 7 +++- 2 files changed, 24 insertions(+), 16 deletions(-) diff --git a/apps/explorer/src/app/components/empty-list/empty-list.tsx b/apps/explorer/src/app/components/empty-list/empty-list.tsx index c54b13ed7..7e608a9b7 100644 --- a/apps/explorer/src/app/components/empty-list/empty-list.tsx +++ b/apps/explorer/src/app/components/empty-list/empty-list.tsx @@ -1,28 +1,31 @@ -import { t } from "@vegaprotocol/react-helpers"; +import { t } from '@vegaprotocol/react-helpers'; export type EmptyListProps = { - heading?: string - label?: string + heading?: string; + label?: string; }; /** * Renders the empty state from github ticket #1463 */ -const EmptyList = ({ - heading, - label -}: EmptyListProps) => { +const EmptyList = ({ heading, label }: EmptyListProps) => { return (
-
-
-
-
+
+
+
+
-
- {heading ?

{heading}

: null} - {label ?

{label}

: null} -
+
+ {heading ? ( +

+ {heading} +

+ ) : null} + {label ? ( +

{label}

+ ) : null} +
); }; diff --git a/apps/explorer/src/app/routes/blocks/id/block.tsx b/apps/explorer/src/app/routes/blocks/id/block.tsx index 5ca6a9279..aa102a085 100644 --- a/apps/explorer/src/app/routes/blocks/id/block.tsx +++ b/apps/explorer/src/app/routes/blocks/id/block.tsx @@ -113,7 +113,12 @@ const Block = () => { blockHeight={blockData.result.block.header.height} txCount={blockData.result.block.data.txs.length} /> - ) : } + ) : ( + + )} )}