Updated on 2026-08-14
This commit is contained in:
parent
e895d15e8a
commit
d53f4d0346
5 changed files with 354 additions and 52 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue