Skip to content
This repository was archived by the owner on Jul 13, 2021. It is now read-only.

Commit 8e8f733

Browse files
committed
Fix some typos, mostly in identifiers
1 parent 9e93d92 commit 8e8f733

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

frontend/src/org/jetbrains/demo/thinkter/Application.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ class Application : ReactDOMComponent<ReactComponentNoProps, ApplicationPageStat
6868
MainView.Register -> RegisterComponent {
6969
userAssigned = { onUserAssigned(it) }
7070
}
71-
MainView.PostThought -> NewThoughComponent {
71+
MainView.PostThought -> NewThoughtComponent {
7272
showThought = { t -> onShowThought(t) }
7373
replyTo = state.replyTo
7474
}
7575
MainView.User -> {}
76-
MainView.Though -> ViewThoughtComponent {
76+
MainView.Thought -> ViewThoughtComponent {
7777
thought = state.currentThought ?: Thought(0, "?", "?", "?", null)
7878
currentUser = state.currentUser
7979
reply = { onReplyTo(it) }
@@ -101,7 +101,7 @@ class Application : ReactDOMComponent<ReactComponentNoProps, ApplicationPageStat
101101
setState {
102102
currentUser = null
103103
selected = when (oldSelected) {
104-
MainView.Home, MainView.Though, MainView.Login, MainView.Register -> oldSelected
104+
MainView.Home, MainView.Thought, MainView.Login, MainView.Register -> oldSelected
105105
else -> MainView.Home
106106
}
107107
}
@@ -110,7 +110,7 @@ class Application : ReactDOMComponent<ReactComponentNoProps, ApplicationPageStat
110110
private fun onShowThought(t: Thought) {
111111
setState {
112112
currentThought = t
113-
selected = MainView.Though
113+
selected = MainView.Thought
114114
}
115115
}
116116

@@ -151,7 +151,7 @@ enum class MainView {
151151
Login,
152152
User,
153153
PostThought,
154-
Though,
154+
Thought,
155155
Home
156156
}
157157

frontend/src/org/jetbrains/demo/thinkter/NewThoughComponent.kt renamed to frontend/src/org/jetbrains/demo/thinkter/NewThoughtComponent.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import org.jetbrains.demo.thinkter.model.*
77
import react.*
88
import react.dom.*
99

10-
class NewThoughComponent : ReactDOMComponent<NewThoughComponent.Props, NewThoughComponent.State>() {
11-
companion object : ReactComponentSpec<NewThoughComponent, Props, State>
10+
class NewThoughtComponent : ReactDOMComponent<NewThoughtComponent.Props, NewThoughtComponent.State>() {
11+
companion object : ReactComponentSpec<NewThoughtComponent, Props, State>
1212

1313
init {
1414
state = State()
@@ -31,7 +31,7 @@ class NewThoughComponent : ReactDOMComponent<NewThoughComponent.Props, NewThough
3131
}
3232

3333
textArea(classes = "pure-input-1-2") {
34-
placeholder = "Your though..."
34+
placeholder = "Your thought..."
3535

3636
onChangeFunction = {
3737
setState {
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package org.jetbrains.demo.thinkter
2+
3+
import react.*
4+
5+
private val ReactMarkdown: dynamic = runtime.wrappers.require("react-markdown")
6+
7+
class ReactMarkdownProps(var source: String = "") : RProps()
8+
9+
object ReactMarkdownComponent : ReactExternalComponentSpec<ReactMarkdownProps>(ReactMarkdown)

frontend/src/org/jetbrains/demo/thinkter/RectMarkdown.kt

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)