Skip to content

Commit

Permalink
Make bottom navigation badge same style as in other places
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelekol committed Jun 3, 2024
1 parent bd14002 commit 8255368
Showing 1 changed file with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@ import androidx.compose.foundation.layout.size
import androidx.compose.foundation.pager.HorizontalPager
import androidx.compose.foundation.pager.rememberPagerState
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Badge
import androidx.compose.material.BadgedBox
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.Icon
import androidx.compose.material.ModalBottomSheetLayout
import androidx.compose.material.ModalBottomSheetValue
import androidx.compose.material.Scaffold
import androidx.compose.material.Text
import androidx.compose.material.rememberModalBottomSheetState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
Expand Down Expand Up @@ -65,6 +63,7 @@ import io.horizontalsystems.bankwallet.modules.transactions.TransactionsViewMode
import io.horizontalsystems.bankwallet.modules.walletconnect.WCAccountTypeNotSupportedDialog
import io.horizontalsystems.bankwallet.modules.walletconnect.WCManager.SupportState
import io.horizontalsystems.bankwallet.ui.compose.ComposeAppTheme
import io.horizontalsystems.bankwallet.ui.compose.components.BadgeText
import io.horizontalsystems.bankwallet.ui.compose.components.HsBottomNavigation
import io.horizontalsystems.bankwallet.ui.compose.components.HsBottomNavigationItem
import io.horizontalsystems.bankwallet.ui.extensions.WalletSwitchBottomSheet
Expand Down Expand Up @@ -317,15 +316,9 @@ private fun BadgedIcon(
is MainModule.BadgeType.BadgeNumber ->
BadgedBox(
badge = {
Badge(
backgroundColor = ComposeAppTheme.colors.lucian
) {
Text(
text = badge.number.toString(),
style = ComposeAppTheme.typography.micro,
color = ComposeAppTheme.colors.white,
)
}
BadgeText(
text = badge.number.toString(),
)
},
content = icon
)
Expand Down

0 comments on commit 8255368

Please sign in to comment.