Code cleanup

This commit is contained in:
Milan Cerovsky 2025-04-29 11:59:42 +02:00
parent 5c9854dc00
commit 011ebf0733
3 changed files with 4 additions and 2 deletions

View File

@ -92,6 +92,7 @@ fun ZashiBigIconButton(
shadowElevation = shadowElevation
) {
Column(
modifier = backgroundModifier,
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.Center
) {

View File

@ -78,7 +78,7 @@ class OnZip321ScannedUseCase(
)
)
navigationRouter.replace(Send(), ReviewTransaction)
} catch (e: TransactionProposalNotCreatedException) {
} catch (_: TransactionProposalNotCreatedException) {
prefillSend.requestFromZip321(zip321.payment)
navigationRouter.replace(Send())
zashiProposalRepository.clear()
@ -119,7 +119,7 @@ class OnZip321ScannedUseCase(
)
)
navigationRouter.forward(ReviewTransaction)
} catch (e: TransactionProposalNotCreatedException) {
} catch (_: TransactionProposalNotCreatedException) {
prefillSend.requestFromZip321(zip321.payment)
navigationRouter.back()
zashiProposalRepository.clear()

View File

@ -157,6 +157,7 @@ private fun NavButtons(
}
}
@Suppress("MagicNumber")
fun Modifier.minHeight106Percent(): Modifier =
layout { measurable, constraints ->
val placeable = measurable.measure(constraints)