X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=blobdiff_plain;f=empathy%2Fempathy.jsx;h=ab45be913f109e782349529af805f8edd82105e1;hp=85738f3eb69a021a7e4cf3bc67fb728f0473b546;hb=00002a9f80dae904c1629f2d0b06d2acc89e94bf;hpb=43502f89bf6346115c388b80a6c7f559a336d000 diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx index 85738f3..ab45be9 100644 --- a/empathy/empathy.jsx +++ b/empathy/empathy.jsx @@ -363,6 +363,50 @@ class CategoryRequest extends React.PureComponent { } } +const PromptOption = React.memo(props => { + + const prompt = props.prompt; + const [show_prompt, set_show_prompt] = React.useState(true); + + if (! show_prompt) + return false; + + if (prompt.votes_against.find(v => v === props.player.name)) + return false; + + return ( + + ); +}); + const PromptOptions = React.memo(props => { if (props.prompts.length === 0) @@ -375,29 +419,7 @@ const PromptOptions = React.memo(props => { Select any categories below that you'd like to play. You can choose as many as you'd like.
- {props.prompts.map(p => { - return ( - - ); - })} + {props.prompts.map(p =>- The following players have completed judging: - {[...this.props.players_judged].join(', ')} -
-- Still waiting for the following players: + Still waiting for the following player + {judging_players.length > 1 ? 's' : '' } + :
+ The following players have completed judging:{' '} + {[...this.props.players_judged].join(', ')} +
+ {still_waiting} {move_on_button}- The following players have submitted their answers: - {[...this.props.players_answered].join(', ')} -
-- Still waiting for the following players: + Still waiting for the following player + {answering_players.length > 1 ? 's' : ''} + :
+ The following players have submitted their answers:{' '} + {[...this.props.players_answered].join(', ')} +
+ {still_waiting} {move_on_button}Remember, you're trying to match your answers with what the other players submit. - Give {this.props.prompt.items} answers for the following prompt: + Give {this.props.prompt.items} answer + {this.props.prompt.items > 1 ? 's' : ''} for the following prompt: