From e22bc453fd2419f29046683d363839c230360e00 Mon Sep 17 00:00:00 2001 From: Kacper Szarkiewicz Date: Fri, 31 May 2024 11:25:10 +0200 Subject: [PATCH] simplify code structure --- src/components/Form/Amount/index.tsx | 40 +++++++++++----------------- 1 file changed, 16 insertions(+), 24 deletions(-) diff --git a/src/components/Form/Amount/index.tsx b/src/components/Form/Amount/index.tsx index 74abe707..1f1c2e9a 100644 --- a/src/components/Form/Amount/index.tsx +++ b/src/components/Form/Amount/index.tsx @@ -53,31 +53,23 @@ const Amount = ({ />
- {hideHalfButton ? ( - <> - ) : ( - <> - - + {hideHalfButton ? null : ( + )} - {hideMaxButton ? ( - <> - ) : ( - <> - - + {hideMaxButton ? null : ( + )}