code quality improvements and improved file error handling
This commit is contained in:
@@ -11,9 +11,15 @@ const WiFiCard = () => {
|
||||
return (
|
||||
<Card className="mb-4">
|
||||
<CardHeader title={"WiFi"} />
|
||||
|
||||
<div className="flex flex-col gap-4">
|
||||
<FormGroup>
|
||||
<label htmlFor="ssid" className="font-medium whitespace-nowrap md:w-2/3">SSID</label>
|
||||
<label
|
||||
htmlFor="ssid"
|
||||
className="font-medium whitespace-nowrap md:w-2/3"
|
||||
>
|
||||
SSID
|
||||
</label>
|
||||
<input
|
||||
id="ssid"
|
||||
name="ssid"
|
||||
@@ -21,11 +27,16 @@ const WiFiCard = () => {
|
||||
className="p-2 border border-gray-400 rounded-lg flex-1 md:w-2/3"
|
||||
placeholder="Enter SSID"
|
||||
value={ssid}
|
||||
onChange={e => setSsid(e.target.value)}
|
||||
onChange={(e) => setSsid(e.target.value)}
|
||||
/>
|
||||
</FormGroup>
|
||||
<FormGroup>
|
||||
<label htmlFor="password" className="font-medium whitespace-nowrap md:w-2/3">Password</label>
|
||||
<label
|
||||
htmlFor="password"
|
||||
className="font-medium whitespace-nowrap md:w-2/3"
|
||||
>
|
||||
Password
|
||||
</label>
|
||||
<input
|
||||
id="password"
|
||||
name="password"
|
||||
@@ -33,17 +44,22 @@ const WiFiCard = () => {
|
||||
className="p-2 border border-gray-400 rounded-lg flex-1 md:w-2/3"
|
||||
placeholder="Enter Password"
|
||||
value={password}
|
||||
onChange={e => setPassword(e.target.value)}
|
||||
onChange={(e) => setPassword(e.target.value)}
|
||||
/>
|
||||
</FormGroup>
|
||||
<FormGroup>
|
||||
<label htmlFor="encryption" className="font-medium whitespace-nowrap md:w-2/3">WPA/Encryption Type</label>
|
||||
<label
|
||||
htmlFor="encryption"
|
||||
className="font-medium whitespace-nowrap md:w-2/3"
|
||||
>
|
||||
WPA/Encryption Type
|
||||
</label>
|
||||
<select
|
||||
id="encryption"
|
||||
name="encryption"
|
||||
className="p-2 border border-gray-400 rounded-lg text-white bg-[#253445] flex-1 md:w-2/3"
|
||||
value={encryption}
|
||||
onChange={e => setEncryption(e.target.value)}
|
||||
onChange={(e) => setEncryption(e.target.value)}
|
||||
>
|
||||
<option value="WPA2">WPA2</option>
|
||||
<option value="WPA3">WPA3</option>
|
||||
|
||||
Reference in New Issue
Block a user