diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-03-21 19:59:26 +0100 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-03-21 19:59:26 +0100 |
commit | 003f0e113ef55de3736976d4b76325f68f2c0ffc (patch) | |
tree | 9b899e2b305860d128cd4de9b0f7d1b65e55a2b3 /sw-ui-kt/src/main | |
parent | Improve GameList conversion from TypeScript (diff) | |
download | seven-wonders-003f0e113ef55de3736976d4b76325f68f2c0ffc.tar.gz seven-wonders-003f0e113ef55de3736976d4b76325f68f2c0ffc.tar.bz2 seven-wonders-003f0e113ef55de3736976d4b76325f68f2c0ffc.zip |
Add TODOs for replacing blueprintjs components
Diffstat (limited to 'sw-ui-kt/src/main')
3 files changed, 14 insertions, 4 deletions
diff --git a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/home/ChooseNameForm.kt b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/home/ChooseNameForm.kt index a5cb9538..778ef684 100644 --- a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/home/ChooseNameForm.kt +++ b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/home/ChooseNameForm.kt @@ -29,6 +29,16 @@ private class ChooseNameForm(props: ChooseNameFormProps): RComponent<ChooseNameF form { attrs.onSubmitFunction = { props.chooseUsername(state.username) } + // TODO <InputGroup + // className={Classes.LARGE} + // placeholder="Username" + // onChange={(e: ChangeEvent<HTMLInputElement>) => (this._username = e.target.value)} + // rightElement={this.renderSubmit()} + // /> + // Where: + // renderSubmit = () => ( + // <Button className={Classes.MINIMAL} onClick={this.play} intent={Intent.PRIMARY} icon="arrow-right" /> + // ); input(type = InputType.text) { attrs { value = state.username diff --git a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt index 360937ed..0858eff7 100644 --- a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt +++ b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt @@ -36,7 +36,7 @@ class LobbyPresenter(props: LobbyProps) : RComponent<LobbyProps, RState>(props) h2 { +"${currentGame.name} — Lobby" } radialPlayerList(props.players) if (currentPlayer.isGameOwner) { - // <Button text="START" + // TODO <Button text="START" // className={Classes.LARGE} // intent={Intent.PRIMARY} // icon='play' diff --git a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/RadialPlayerList.kt b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/RadialPlayerList.kt index de6eabbd..3c98c3ce 100644 --- a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/RadialPlayerList.kt +++ b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/RadialPlayerList.kt @@ -94,9 +94,9 @@ private fun RBuilder.playerPlaceholder(): ReactElement = styledDiv { private fun RBuilder.userIcon(isUser: Boolean, isOwner: Boolean, title: String?): ReactElement { // TODO - // const icon: IconName = isOwner ? 'badge' : 'user'; - // const intent: Intent = isUser ? Intent.WARNING : Intent.NONE; - // return <Icon icon={icon} iconSize={50} intent={intent} title={title}/>; + // const icon: IconName = isOwner ? 'badge' : 'user'; + // const intent: Intent = isUser ? Intent.WARNING : Intent.NONE; + // return <Icon icon={icon} iconSize={50} intent={intent} title={title}/>; val owner = if (isOwner) "(owner)" else "" val user = if (isUser) "(me)" else "" val hint = listOf(owner, user).joinToString(" ") |