Code cleanup
This commit is contained in:
parent
5c9854dc00
commit
011ebf0733
|
@ -92,6 +92,7 @@ fun ZashiBigIconButton(
|
||||||
shadowElevation = shadowElevation
|
shadowElevation = shadowElevation
|
||||||
) {
|
) {
|
||||||
Column(
|
Column(
|
||||||
|
modifier = backgroundModifier,
|
||||||
horizontalAlignment = Alignment.CenterHorizontally,
|
horizontalAlignment = Alignment.CenterHorizontally,
|
||||||
verticalArrangement = Arrangement.Center
|
verticalArrangement = Arrangement.Center
|
||||||
) {
|
) {
|
||||||
|
|
|
@ -78,7 +78,7 @@ class OnZip321ScannedUseCase(
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
navigationRouter.replace(Send(), ReviewTransaction)
|
navigationRouter.replace(Send(), ReviewTransaction)
|
||||||
} catch (e: TransactionProposalNotCreatedException) {
|
} catch (_: TransactionProposalNotCreatedException) {
|
||||||
prefillSend.requestFromZip321(zip321.payment)
|
prefillSend.requestFromZip321(zip321.payment)
|
||||||
navigationRouter.replace(Send())
|
navigationRouter.replace(Send())
|
||||||
zashiProposalRepository.clear()
|
zashiProposalRepository.clear()
|
||||||
|
@ -119,7 +119,7 @@ class OnZip321ScannedUseCase(
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
navigationRouter.forward(ReviewTransaction)
|
navigationRouter.forward(ReviewTransaction)
|
||||||
} catch (e: TransactionProposalNotCreatedException) {
|
} catch (_: TransactionProposalNotCreatedException) {
|
||||||
prefillSend.requestFromZip321(zip321.payment)
|
prefillSend.requestFromZip321(zip321.payment)
|
||||||
navigationRouter.back()
|
navigationRouter.back()
|
||||||
zashiProposalRepository.clear()
|
zashiProposalRepository.clear()
|
||||||
|
|
|
@ -157,6 +157,7 @@ private fun NavButtons(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("MagicNumber")
|
||||||
fun Modifier.minHeight106Percent(): Modifier =
|
fun Modifier.minHeight106Percent(): Modifier =
|
||||||
layout { measurable, constraints ->
|
layout { measurable, constraints ->
|
||||||
val placeable = measurable.measure(constraints)
|
val placeable = measurable.measure(constraints)
|
||||||
|
|
Loading…
Reference in New Issue