Skip to content

Commit

Permalink
Update project
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbel committed Dec 31, 2024
1 parent 1430875 commit 457d60c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ fun ListScreen(
items(entities) { entity ->
ListElement(
entity = entity,
onCLick = onClick
onClick = onClick
)
}
}
Expand All @@ -88,7 +88,7 @@ fun ListScreen(
@Composable
fun ListElement(
entity: AppEntity,
onCLick: (Int) -> Unit
onClick: (Int) -> Unit
) {
Card(
modifier = Modifier
Expand All @@ -101,7 +101,7 @@ fun ListElement(
) {
Column(
modifier = Modifier
.clickable { onCLick(entity.id) }
.clickable(onClick = { onClick(entity.id) })
.fillMaxWidth()
) {
AsyncImage(
Expand Down Expand Up @@ -132,7 +132,7 @@ private fun ListElementPreview() {
AppTheme {
ListElement(
entity = AppEntity(0, "", "", ""),
onCLick = {}
onClick = {}
)
}
}

0 comments on commit 457d60c

Please sign in to comment.