Merge pull request #999 from believethehype/nutrendering

Show mint in cashu token rendering
This commit is contained in:
Vitor Pamplona
2024-07-30 13:47:14 -04:00
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@@ -339,6 +339,12 @@ fun CashuPreviewNew(
fontSize = 20.sp, fontSize = 20.sp,
modifier = Modifier.padding(top = 5.dp), modifier = Modifier.padding(top = 5.dp),
) )
Text(
text = "Mint: " + token.mint.replace("https://", ""),
fontSize = 7.sp,
color = Color.Gray,
modifier = Modifier.padding(start = 5.dp, bottom = 1.dp),
)
Row(modifier = Modifier.padding(top = 5.dp)) { Row(modifier = Modifier.padding(top = 5.dp)) {
var isRedeeming by remember { mutableStateOf(false) } var isRedeeming by remember { mutableStateOf(false) }

View File

@@ -824,7 +824,7 @@ private fun RenderVideoPlayer(
} }
AnimatedShareButton(controllerVisible, Modifier.align(Alignment.TopEnd).padding(end = Size165dp)) { popupExpanded, toggle -> AnimatedShareButton(controllerVisible, Modifier.align(Alignment.TopEnd).padding(end = Size165dp)) { popupExpanded, toggle ->
ShareImageAction(accountViewModel = accountViewModel, popupExpanded, videoUri, null, null, null, null, nostrUriCallback, toggle) ShareImageAction(accountViewModel = accountViewModel, popupExpanded, videoUri, nostrUriCallback, null, null, null, mimeType, toggle)
} }
} else { } else {
controller.volume = 0f controller.volume = 0f