From 7ea05a84a107df0479bd7537de1cb66444f5f2b4 Mon Sep 17 00:00:00 2001
From: Buddy-web3 <0buddy.ne@gmail.com>
Date: Fri, 23 Feb 2024 10:48:20 +0200
Subject: [PATCH] redundant code
---
app/components/Button/index.tsx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/app/components/Button/index.tsx b/app/components/Button/index.tsx
index 548802a8..c0c2bb52 100644
--- a/app/components/Button/index.tsx
+++ b/app/components/Button/index.tsx
@@ -8,14 +8,12 @@ type ButtonProps = {
className?: string
tooltip?: string
icon?: ReactNode
- leftIcon?: ReactNode
}
-const Button = ({children, action, tooltip, icon, leftIcon, className}: ButtonProps) => {
+const Button = ({children, action, tooltip, icon, className}: ButtonProps) => {
const classes = ['button', className, tooltip && 'tooltip'].filter((i) => i).join(' ')
if (typeof action === 'string') {
return (
- {leftIcon && leftIcon}
{children}
{icon && icon}
@@ -23,7 +21,6 @@ const Button = ({children, action, tooltip, icon, leftIcon, className}: ButtonPr
}
return (