Fix spotless

This commit is contained in:
Oleksandr Balan
2023-03-28 18:23:39 +02:00
parent 15f5641637
commit b9fb2e8ed6

View File

@@ -77,13 +77,15 @@ public fun PageCurl(
}
if (updatedCurrent < state.max) {
Box(Modifier.drawCurl(config, internalState.forward.value.top, internalState.forward.value.bottom)) {
val forward = internalState.forward.value
Box(Modifier.drawCurl(config, forward.top, forward.bottom)) {
content(updatedCurrent)
}
}
if (updatedCurrent > 0) {
Box(Modifier.drawCurl(config, internalState.backward.value.top, internalState.backward.value.bottom)) {
val backward = internalState.backward.value
Box(Modifier.drawCurl(config, backward.top, backward.bottom)) {
content(updatedCurrent - 1)
}
}