From ddfd0fb9350105d485a7cdf3717354ac5280ef1e Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Wed, 2 Mar 2022 06:35:05 -0300 Subject: [PATCH] Extract component --- src/components/DecoratedAddressLink.tsx | 27 ++++++++++++++----------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/src/components/DecoratedAddressLink.tsx b/src/components/DecoratedAddressLink.tsx index fff03e9..03763f8 100644 --- a/src/components/DecoratedAddressLink.tsx +++ b/src/components/DecoratedAddressLink.tsx @@ -91,20 +91,10 @@ const DecoratedAddressLink: React.FC = ({ dontOverrideColors={mint || burn} /> {eoa === true && ( - - (EOA) - + (EOA) )} {eoa === false && ( - - (C) - + (C) )} ); @@ -156,4 +146,17 @@ const ResolvedAddress: React.FC = ({ ); }; +type AddressLegendProps = { + title: string; +}; + +const AddressLegend: React.FC = ({ title, children }) => ( + + {children} + +); + export default React.memo(DecoratedAddressLink);