make it so you can press enter on the player page
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 55s

This commit is contained in:
Lee 2024-04-16 19:47:11 +01:00
parent baddd1f684
commit ef39f8c33c

@ -31,7 +31,9 @@ export function LookupPlayer() {
return ( return (
<form className="flex gap-2 justify-center mt-2"> <form className="flex gap-2 justify-center mt-2">
<Input className="w-fit" placeholder="Player UUID / Username" value={player} onChange={setPlayerValue} /> <Input className="w-fit" placeholder="Player UUID / Username" value={player} onChange={setPlayerValue} />
<Button onClick={() => lookupPlayer()}>Lookup</Button> <Button type="submit" onClick={() => lookupPlayer()}>
Lookup
</Button>
</form> </form>
); );
} }