mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 10:20:16 +01:00
changed number fields to numeric
This commit is contained in:
@@ -33,7 +33,7 @@ export default function ActionDrawer() {
|
||||
</div>
|
||||
<div className="mt-1 mb-auto">
|
||||
<div className="h-20 flex flex-row">
|
||||
<TextInput placeholder="Enemy code" onClick={(i) => { console.log(i) }} />
|
||||
<TextInput inputmode="numeric" placeholder="Enemy code" onClick={(i) => { console.log(i) }} />
|
||||
<GreenButton onClick={sendCurrentPosition}>Capture target</GreenButton>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -13,7 +13,7 @@ export default function LoginForm({ onSubmit, title, placeholder, buttonText}) {
|
||||
return (
|
||||
<form className="bg-white shadow-md max-w mx-auto p-5 mx-10 flex flex-col space-y-4" onSubmit={handleSubmit}>
|
||||
<h1 className="text-2xl font-bold text-center text-gray-700">{title}</h1>
|
||||
<TextInput placeholder={placeholder} value={value} onChange={(e) => setValue(e.target.value)} name="team-id"/>
|
||||
<TextInput inputmode="numeric" placeholder={placeholder} value={value} onChange={(e) => setValue(e.target.value)} name="team-id"/>
|
||||
<Button type="submit">{buttonText}</Button>
|
||||
</form>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user