From ea38e8f353a9f7e69618524082acb5e5f70c1dda Mon Sep 17 00:00:00 2001 From: Yashvardhan Jagnani Date: Sat, 21 Sep 2024 02:53:39 +0530 Subject: [PATCH] fix: nit --- src/components/Atoms/Address/Address.tsx | 20 +++++++++----------- src/components/Shared/CopyData.tsx | 6 ++---- src/utils/types/shared.types.ts | 1 - 3 files changed, 11 insertions(+), 16 deletions(-) diff --git a/src/components/Atoms/Address/Address.tsx b/src/components/Atoms/Address/Address.tsx index 6b13f8dd..3335b521 100644 --- a/src/components/Atoms/Address/Address.tsx +++ b/src/components/Atoms/Address/Address.tsx @@ -14,17 +14,15 @@ export const Address: React.FC = ({ } return ( - <> -

- {avatar && } +

+ {avatar && } - - {actionableWrapper( - actionable_address(address), - label?.trim() || truncate(address), - )} - -

- + {actionableWrapper( + actionable_address(address), + label?.trim() || truncate(address), + )} + + +

); }; diff --git a/src/components/Shared/CopyData.tsx b/src/components/Shared/CopyData.tsx index b68585ab..48492137 100644 --- a/src/components/Shared/CopyData.tsx +++ b/src/components/Shared/CopyData.tsx @@ -5,7 +5,7 @@ import { useToast } from "@/utils/hooks"; import { type CopyDataProps } from "@/utils/types/shared.types"; import { useState } from "react"; -export const CopyData: React.FC = ({ children, data }) => { +export const CopyData: React.FC = ({ data }) => { const [copied, showCopied] = useState(false); const { toast } = useToast(); @@ -26,13 +26,11 @@ export const CopyData: React.FC = ({ children, data }) => {