Disable join button when no input is given

This commit is contained in:
Mitchell McCaffrey 2020-03-20 20:31:22 +11:00
parent 980462b109
commit b7ce6892f0

View File

@ -34,7 +34,7 @@ function Join() {
value={gameId || ""}
onChange={handleChange}
/>
<Button>Join ()*:</Button>
<Button disabled={!gameId}>Join ()*:</Button>
</Box>
</Flex>
</Container>