From cb786fa494f3799afb406e9ff53ace372fd46522 Mon Sep 17 00:00:00 2001 From: Ben Woodward Date: Tue, 6 Jul 2021 11:51:44 -0700 Subject: 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. --- src/components/Card.js | 6 +++--- src/components/style.css | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'src/components') 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 @@ -import React, { useState, useEffect } from 'react'; import QRCode from 'qrcode.react'; +import { useEffect, useState } from 'react'; import './style.css'; export const Card = () => { @@ -51,7 +51,7 @@ export const Card = () => {
- { onChange={(e) => setNetwork({ ...network, ssid: e.target.value })} /> -