From bbdc1c6e082ab832a2d2d26eef482f0b77252ff6 Mon Sep 17 00:00:00 2001 From: sam-keen Date: Tue, 22 Mar 2022 15:39:56 +0000 Subject: [PATCH] Used link-like button in block explorer --- .../src/app/components/blocks/blocks-refetch.tsx | 9 ++++++--- apps/explorer/src/index.html | 2 +- libs/ui-toolkit/src/components/button/button.tsx | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/explorer/src/app/components/blocks/blocks-refetch.tsx b/apps/explorer/src/app/components/blocks/blocks-refetch.tsx index 4fe214687..fe5ce7b7d 100644 --- a/apps/explorer/src/app/components/blocks/blocks-refetch.tsx +++ b/apps/explorer/src/app/components/blocks/blocks-refetch.tsx @@ -1,15 +1,18 @@ +import { Button } from '@vegaprotocol/ui-toolkit'; + interface BlocksRefetchProps { refetch: () => void; } export const BlocksRefetch = ({ refetch }: BlocksRefetchProps) => { return ( - + ); }; diff --git a/apps/explorer/src/index.html b/apps/explorer/src/index.html index b51ae59f9..43ba24a20 100644 --- a/apps/explorer/src/index.html +++ b/apps/explorer/src/index.html @@ -9,6 +9,6 @@ -
+
diff --git a/libs/ui-toolkit/src/components/button/button.tsx b/libs/ui-toolkit/src/components/button/button.tsx index 6324c7a91..2191f19a0 100644 --- a/libs/ui-toolkit/src/components/button/button.tsx +++ b/libs/ui-toolkit/src/components/button/button.tsx @@ -36,12 +36,12 @@ const getClassName = ( 'justify-center', 'box-border', 'h-28', - 'text-ui', 'hover:underline', 'disabled:no-underline', 'transition-all', ], { + 'text-ui': variant !== 'inline-link', 'no-underline': variant !== 'inline-link', 'pl-28': !( paddingLeftProvided ||