Skip to content

Commit 4ecbd06

Browse files
Change capitalization of "InputComponent"
1 parent 299cc97 commit 4ecbd06

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/jsMain/kotlin/App.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ val app = fc<Props> {
3131
}
3232
}
3333
}
34-
child(InputComponent) {
34+
child(inputComponent) {
3535
attrs.onSubmit = { input ->
3636
val cartItem = ShoppingListItem(input.replace("!", ""), input.count { it == '!' })
3737
scope.launch {

src/jsMain/kotlin/InputComponent.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ external interface InputProps : Props {
99
var onSubmit: (String) -> Unit
1010
}
1111

12-
val InputComponent = fc<InputProps> { props ->
12+
val inputComponent = fc<InputProps> { props ->
1313
val (text, setText) = useState("")
1414

1515
val submitHandler: (Event) -> Unit = {

0 commit comments

Comments
 (0)