]> git.cworth.org Git - lmno.games/commitdiff
Empathy: Add support for submitting answers to a prompy
authorCarl Worth <cworth@cworth.org>
Wed, 10 Jun 2020 02:46:28 +0000 (19:46 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 10 Jun 2020 02:53:00 +0000 (19:53 -0700)
For this we convert ActivePrompt from a function to a class-based
React component. Then we use the "uncontrolled components" technique
again to arrange for an array to hold the form values.

Finally, when answers are submitted successfully we display a simple,
static message. Eventually, we'll want to display some dynamic updates
as other players vote, (but for that, we'll also need the server to
give us that information).


No differences found