Updated on 2026-08-14

This commit is contained in:
Tangem 2025-04-04 11:33:22 +05:00
parent e895d15e8a
commit d53f4d0346
5 changed files with 354 additions and 52 deletions

View file

@ -30,7 +30,7 @@ class InformationBlockContentScope(val scope: BoxScope) : BoxScope by scope
@Composable
fun InformationBlock(
title: @Composable BoxScope.() -> Unit,
title: (@Composable BoxScope.() -> Unit)?,
modifier: Modifier = Modifier,
contentHorizontalPadding: Dp = TangemTheme.dimens.spacing12,
shape: Shape = TangemTheme.shapes.roundedCornersXMedium,
@ -43,7 +43,9 @@ fun InformationBlock(
.background(color = TangemTheme.colors.background.action),
horizontalAlignment = Alignment.Start,
) {
NetworkTitle(title = title, action = action)
if (title != null) {
NetworkTitle(title = title, action = action)
}
if (content != null) {
Box(