Skip to content

Commit

Permalink
Use Badge instead of ErrorBadge
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo <[email protected]>
  • Loading branch information
Balcan committed Aug 23, 2024
1 parent 294bb34 commit 02318bd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import androidx.compose.ui.platform.testTag
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import org.hisp.dhis.mobile.ui.designsystem.component.Badge
import org.hisp.dhis.mobile.ui.designsystem.component.ErrorBadge
import org.hisp.dhis.mobile.ui.designsystem.component.navigationBar.NavigationBarTestTags.NAVIGATION_BAR
import org.hisp.dhis.mobile.ui.designsystem.component.navigationBar.NavigationBarTestTags.NAVIGATION_BAR_BORDER
Expand Down Expand Up @@ -113,7 +114,7 @@ private fun <T> NavigationBarItemIcon(item: NavigationBarItem<T>, selected: Bool
}
val badgeYOffset = if (!item.badgeText.isNullOrEmpty()) (-4).dp else 0.dp

ErrorBadge(
Badge(
modifier = Modifier.testTag("$NAVIGATION_BAR_ITEM_BADGE_PREFIX${item.label}")
.align(Alignment.TopEnd)
.offset(
Expand Down

0 comments on commit 02318bd

Please sign in to comment.