Skip to content

Commit 8e648ce

Browse files
committed
feat: add validation to network_id input
1 parent d3fd750 commit 8e648ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/App.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,12 @@ function App() {
230230
}}
231231
>
232232
<input
233-
className="input focus:outline-none join-item"
233+
className="input validator focus:outline-none join-item"
234234
onChange={(e) => setNetworkId(e.currentTarget.value)}
235235
placeholder="Enter a network_id..."
236+
maxLength={36}
237+
minLength={5}
238+
required
236239
list="networks"
237240
/>
238241
<datalist id="networks">

0 commit comments

Comments
 (0)