Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
syxc committed Oct 27, 2024
1 parent 1252fa4 commit 376aa08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
package com.jithub.app.shared.redwood

import app.cash.redwood.layout.RedwoodLayout
import app.cash.redwood.schema.Default
import app.cash.redwood.schema.Property
import app.cash.redwood.schema.Schema
import app.cash.redwood.schema.Schema.Dependency
Expand All @@ -27,7 +26,6 @@ data class Text(@Property(1) val text: String?)
data class Button(
@Property(1) val text: String?,
@Property(2)
@Default("true")
val enabled: Boolean = true,
@Property(3) val onClick: (() -> Unit)? = null,
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ import com.jithub.app.shared.redwood.compose.Button
import com.jithub.app.shared.redwood.compose.Text

@Composable
fun Counter(modifier: Modifier = Modifier, value: Int = 0, labels: StringList? = StringList(listOf())) {
fun Counter(
modifier: Modifier = Modifier,
value: Int = 0,
labels: StringList? = StringList(listOf()),
) {
var count by rememberSaveable { mutableIntStateOf(value) }
Column(
width = Constraint.Fill,
Expand Down

0 comments on commit 376aa08

Please sign in to comment.