From 17535fdb17e153431c6037f5b807c0987a11fe6c Mon Sep 17 00:00:00 2001 From: Raja Jawahar Date: Wed, 24 Jan 2024 16:33:39 +0530 Subject: [PATCH] Update tarkaui/src/main/java/com/tarkalabs/uicomponents/components/tab/TUIFloatingNavButton.kt Co-authored-by: Younes Charfaoui --- .../components/tab/TUIFloatingNavButton.kt | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/tarkaui/src/main/java/com/tarkalabs/uicomponents/components/tab/TUIFloatingNavButton.kt b/tarkaui/src/main/java/com/tarkalabs/uicomponents/components/tab/TUIFloatingNavButton.kt index 0b684582..fe7a6aa0 100644 --- a/tarkaui/src/main/java/com/tarkalabs/uicomponents/components/tab/TUIFloatingNavButton.kt +++ b/tarkaui/src/main/java/com/tarkalabs/uicomponents/components/tab/TUIFloatingNavButton.kt @@ -88,17 +88,9 @@ sealed class TUIFloatingNavButtonContentType { .testTag(tags.parentTag)) { when (contentType) { - is Burger -> { - TUIFloatingNavBurgerButton() - } - - is Navigation -> { - TUIFloatingNavTypeButton(contentType, style) - } - - is List -> { - TUIFloatingNavListButton(contentType) - } + is Burger -> TUIFloatingNavBurgerButton() + is Navigation -> TUIFloatingNavTypeButton(contentType, style) + is List -> TUIFloatingNavListButton(contentType) } } }