From 7cfe29adf3900ef1b6cdc5b9e07ed7f9ce581b53 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Thu, 20 Feb 2025 15:31:19 +0100 Subject: [PATCH] change(ui): remove segments for mobile since it has only one category --- .../components/AddCardSection/AddCardSection.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/frontend/app/components/Dashboard/components/AddCardSection/AddCardSection.tsx b/frontend/app/components/Dashboard/components/AddCardSection/AddCardSection.tsx index 751d7505d..6781aeedb 100644 --- a/frontend/app/components/Dashboard/components/AddCardSection/AddCardSection.tsx +++ b/frontend/app/components/Dashboard/components/AddCardSection/AddCardSection.tsx @@ -289,11 +289,13 @@ const AddCardSection = observer( ) : null}
- setTab(value)} - /> + {options.length > 1 ? ( + setTab(value)} + /> + ) : null}