This repository was archived by the owner on Aug 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
frontend/src/main/kotlin/com/linkedplanet/ktorbase/component Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff 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) {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package com.linkedplanet.ktorbase.component.main
22
33import com.linkedplanet.ktorbase.component.banner.BannerComponent
44import com.linkedplanet.ktorbase.component.login.LoginComponent
5- import com.linkedplanet.ktorbase.component.pages.mainPage.MainPage
5+ import com.linkedplanet.ktorbase.component.page.WelcomePage
66import com.linkedplanet.ktorbase.model.Config
77import com.linkedplanet.ktorbase.model.Notification
88import 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 number Diff line number Diff line change 1- package com.linkedplanet.ktorbase.component.pages.mainPage
1+ package com.linkedplanet.ktorbase.component.page
22
33import com.linkedplanet.ktorbase.model.Config
44import com.linkedplanet.ktorbase.model.Session
@@ -8,12 +8,12 @@ import react.dom.div
88import react.dom.p
99import 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() } }
You can’t perform that action at this time.
0 commit comments