Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit c967eba

Browse files
committed
rename MainPage to WelcomePage
1 parent 517251d commit c967eba

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

frontend/src/main/kotlin/com/linkedplanet/ktorbase/component/login/LoginComponent.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private val LoginComponent = fc<LoginProps> { props ->
4141
val v = (it.target as HTMLInputElement).value
4242
setUsername(v)
4343
}
44-
// TODO
44+
// TODO add to ui-kit-lib
4545
// attrs.autoFocus = true
4646
// attrs.autoComplete = "off"
4747
}
@@ -53,7 +53,7 @@ private val LoginComponent = fc<LoginProps> { props ->
5353
val v = (it.target as HTMLInputElement).value
5454
setPassword(v)
5555
}
56-
// TODO
56+
// TODO add to ui-kit-lib
5757
// attrs.autoComplete = "off"
5858
}
5959
button(type = ButtonType.submit) {

frontend/src/main/kotlin/com/linkedplanet/ktorbase/component/main/MainComponent.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package com.linkedplanet.ktorbase.component.main
22

33
import com.linkedplanet.ktorbase.component.banner.BannerComponent
44
import com.linkedplanet.ktorbase.component.login.LoginComponent
5-
import com.linkedplanet.ktorbase.component.pages.mainPage.MainPage
5+
import com.linkedplanet.ktorbase.component.page.WelcomePage
66
import com.linkedplanet.ktorbase.model.Config
77
import com.linkedplanet.ktorbase.model.Notification
88
import com.linkedplanet.ktorbase.model.NotificationType
@@ -100,7 +100,7 @@ private val MainComponent = fc<Props> { _ ->
100100
}
101101

102102
is AppState.Main -> {
103-
MainPage {
103+
WelcomePage {
104104
this.session = appState.session
105105
this.config = appState.config
106106
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.linkedplanet.ktorbase.component.pages.mainPage
1+
package com.linkedplanet.ktorbase.component.page
22

33
import com.linkedplanet.ktorbase.model.Config
44
import com.linkedplanet.ktorbase.model.Session
@@ -8,12 +8,12 @@ import react.dom.div
88
import react.dom.p
99
import react.fc
1010

11-
external interface MainPageProps : Props {
11+
external interface WelcomePageProps : Props {
1212
var session: Session
1313
var config: Config
1414
}
1515

16-
private val MainPage = fc<MainPageProps> { props ->
16+
private val WelcomePage = fc<WelcomePageProps> { props ->
1717
val greetUsername = props.session.username
1818
div {
1919
p { +"Hello $greetUsername" }
@@ -22,5 +22,5 @@ private val MainPage = fc<MainPageProps> { props ->
2222
}
2323
}
2424

25-
fun RBuilder.MainPage(handler: MainPageProps.() -> Unit) =
26-
child(MainPage) { attrs { handler() } }
25+
fun RBuilder.WelcomePage(handler: WelcomePageProps.() -> Unit) =
26+
child(WelcomePage) { attrs { handler() } }

0 commit comments

Comments
 (0)