fix: disabled changing position when cards searching

This commit is contained in:
2026-06-25 12:34:47 +03:00
parent 20a62b77b6
commit 8f79b60399
2 changed files with 13 additions and 5 deletions
@@ -186,7 +186,7 @@ fun TopBar(
}
@Composable
fun CardButton(cardInfo: CardInfo, onDeleteCard: (Int) -> Unit, reorderIcon: @Composable () -> Unit) {
fun CardButton(cardInfo: CardInfo, onDeleteCard: (Int) -> Unit, reorderIcon: (@Composable () -> Unit)? = null) {
val context = LocalContext.current
var menuExpanded by remember { mutableStateOf(false) }
@@ -244,7 +244,9 @@ fun CardButton(cardInfo: CardInfo, onDeleteCard: (Int) -> Unit, reorderIcon: @Co
)
}
reorderIcon()
if (reorderIcon != null) {
reorderIcon()
}
}
}