Skip to content

Commit

Permalink
Let users add some info on registration (#2553)
Browse files Browse the repository at this point in the history
### What's done:
 * Added `textarea` on `registrationView` to fill personal info
  • Loading branch information
sanyavertolet authored Sep 6, 2023
1 parent 99e5024 commit 15efaee
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import react.dom.html.ReactHTML.input
import react.dom.html.ReactHTML.label
import react.dom.html.ReactHTML.main
import react.dom.html.ReactHTML.span
import react.dom.html.ReactHTML.textarea
import react.router.dom.Link
import web.cssom.*
import web.file.File
Expand Down Expand Up @@ -233,6 +234,16 @@ val registrationView: FC<RegistrationProps> = FC { props ->
}
}

div {
className = ClassName("pt-3")
textarea {
className = ClassName("form-control")
value = userInfo.freeText
placeholder = "Please enter some information about yourself so that it would be easier for us to approve."
onChange = { event -> setUserInfo { previousUserInfo -> previousUserInfo.copy(freeText = event.target.value) } }
}
}

div {
className = ClassName("mt-2 form-check row")
input {
Expand Down

0 comments on commit 15efaee

Please sign in to comment.