From 8f074b6650a8f23f85315b4d9b4d4c706941bb02 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Mon, 8 Aug 2022 01:11:17 -0300 Subject: [PATCH] Code simplification: new tailwindcss 3 opacity syntax --- src/Block.tsx | 2 +- src/block/NavButton.tsx | 4 ++-- src/components/DecoratedAddressLink.tsx | 5 +---- src/search/PageButton.tsx | 4 ++-- src/search/UndefinedPageButton.tsx | 4 ++-- src/transaction/NavButton.tsx | 4 ++-- 6 files changed, 10 insertions(+), 13 deletions(-) diff --git a/src/Block.tsx b/src/Block.tsx index c8afe43..aae470e 100644 --- a/src/Block.tsx +++ b/src/Block.tsx @@ -89,7 +89,7 @@ const Block: React.FC = () => { {block.transactionCount} transactions diff --git a/src/block/NavButton.tsx b/src/block/NavButton.tsx index 96e65e4..2af91d3 100644 --- a/src/block/NavButton.tsx +++ b/src/block/NavButton.tsx @@ -17,7 +17,7 @@ const NavButton: React.FC> = ({ }) => { if (disabled) { return ( - + {children} ); @@ -25,7 +25,7 @@ const NavButton: React.FC> = ({ return ( {children} diff --git a/src/components/DecoratedAddressLink.tsx b/src/components/DecoratedAddressLink.tsx index 806d238..d843c28 100644 --- a/src/components/DecoratedAddressLink.tsx +++ b/src/components/DecoratedAddressLink.tsx @@ -160,10 +160,7 @@ const AddressLegend: React.FC> = ({ title, children, }) => ( - + {children} ); diff --git a/src/search/PageButton.tsx b/src/search/PageButton.tsx index fb6e1f1..d6a59ce 100644 --- a/src/search/PageButton.tsx +++ b/src/search/PageButton.tsx @@ -13,7 +13,7 @@ const PageButton: React.FC> = ({ }) => { if (disabled) { return ( - + {children} ); @@ -21,7 +21,7 @@ const PageButton: React.FC> = ({ return ( {children} diff --git a/src/search/UndefinedPageButton.tsx b/src/search/UndefinedPageButton.tsx index 13cc42f..e7ac7f6 100644 --- a/src/search/UndefinedPageButton.tsx +++ b/src/search/UndefinedPageButton.tsx @@ -13,7 +13,7 @@ const UndefinedPageButton: React.FC< > = ({ address, direction, hash, disabled, children }) => { if (disabled) { return ( - + {children} ); @@ -21,7 +21,7 @@ const UndefinedPageButton: React.FC< return ( > = ({ }) => { if (disabled) { return ( - + {children} ); @@ -26,7 +26,7 @@ const NavButton: React.FC> = ({ return ( {children}