aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Card.js
diff options
context:
space:
mode:
authorBen Woodward <ben@bdw.to>2021-07-06 11:51:44 -0700
committerGitHub <noreply@github.com>2021-07-06 11:51:44 -0700
commitcb786fa494f3799afb406e9ff53ace372fd46522 (patch)
treeee7942cc4470555688a83d7d3b2ed9214b6c11bd /src/components/Card.js
parentf3387a3bf5cdbd7b747afe0198cce4a60a7875c0 (diff)
Change inputs to textareas (#34)
Issue #28 discovered long ssid and password values would be visibly cropped. This change replaces the input fields with 2-row textareas that properly handle the maximum length of both ssids and passwords, 32 and 63 characters respectively.
Diffstat (limited to 'src/components/Card.js')
-rw-r--r--src/components/Card.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/Card.js b/src/components/Card.js
index 3394859..bbf29f9 100644
--- a/src/components/Card.js
+++ b/src/components/Card.js
@@ -1,5 +1,5 @@
1import React, { useState, useEffect } from 'react';
2import QRCode from 'qrcode.react'; 1import QRCode from 'qrcode.react';
2import { useEffect, useState } from 'react';
3import './style.css'; 3import './style.css';
4 4
5export const Card = () => { 5export const Card = () => {
@@ -51,7 +51,7 @@ export const Card = () => {
51 51
52 <div className="text"> 52 <div className="text">
53 <label>Network name</label> 53 <label>Network name</label>
54 <input 54 <textarea
55 id="ssid" 55 id="ssid"
56 type="text" 56 type="text"
57 maxLength="32" 57 maxLength="32"
@@ -60,7 +60,7 @@ export const Card = () => {
60 onChange={(e) => setNetwork({ ...network, ssid: e.target.value })} 60 onChange={(e) => setNetwork({ ...network, ssid: e.target.value })}
61 /> 61 />
62 <label>Password</label> 62 <label>Password</label>
63 <input 63 <textarea
64 id="password" 64 id="password"
65 type="text" 65 type="text"
66 maxLength="63" 66 maxLength="63"