Skip to content
This repository was archived by the owner on May 17, 2023. It is now read-only.

Commit 720e98e

Browse files
Use KotlinVideo everywhere.
1 parent 5fed0f7 commit 720e98e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Building Web Applications with React and Kotlin JS/06_More_Components.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@ We can fill the state with some predefined values from within the `init` method.
119119
```kotlin
120120
override fun AppState.init() {
121121
unwatchedVideos = listOf(
122-
Video(1, "Building and breaking things", "John Doe", "https://youtu.be/PsaFVLr8t4E"),
123-
Video(2, "The development process", "Jane Smith", "https://youtu.be/PsaFVLr8t4E"),
124-
Video(3, "The Web 7.0", "Matt Miller", "https://youtu.be/PsaFVLr8t4E")
122+
KotlinVideo(1, "Building and breaking things", "John Doe", "https://youtu.be/PsaFVLr8t4E"),
123+
KotlinVideo(2, "The development process", "Jane Smith", "https://youtu.be/PsaFVLr8t4E"),
124+
KotlinVideo(3, "The Web 7.0", "Matt Miller", "https://youtu.be/PsaFVLr8t4E")
125125
)
126126
watchedVideos = listOf(
127-
Video(4, "Mouseless development", "Tom Jerry", "https://youtu.be/PsaFVLr8t4E")
127+
KotlinVideo(4, "Mouseless development", "Tom Jerry", "https://youtu.be/PsaFVLr8t4E")
128128
)
129129
}
130130
```

0 commit comments

Comments
 (0)