From 6352060da32a81a3772d1c88ac00db07d796e28e Mon Sep 17 00:00:00 2001 From: Aleksandr Gumroian Date: Mon, 9 Dec 2024 16:50:29 +0100 Subject: [PATCH] Add encryption selection to WiFiGuestForm --- src/common/WiFiSettings/WiFiGuestForm.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/common/WiFiSettings/WiFiGuestForm.js b/src/common/WiFiSettings/WiFiGuestForm.js index 49d34de..05483e9 100644 --- a/src/common/WiFiSettings/WiFiGuestForm.js +++ b/src/common/WiFiSettings/WiFiGuestForm.js @@ -9,9 +9,10 @@ import React from "react"; import PropTypes from "prop-types"; -import { HELP_TEXTS } from "./constants"; +import { HELP_TEXTS, ENCRYPTIONMODES } from "./constants"; import WiFiQRCode from "./WiFiQRCode"; import PasswordInput from "../../bootstrap/PasswordInput"; +import Select from "../../bootstrap/Select"; import Switch from "../../bootstrap/Switch"; import TextInput from "../../bootstrap/TextInput"; @@ -21,6 +22,7 @@ WifiGuestForm.propTypes = { SSID: PropTypes.string.isRequired, password: PropTypes.string.isRequired, enabled: PropTypes.bool.isRequired, + encryption: PropTypes.string.isRequired, }), formErrors: PropTypes.shape({ SSID: PropTypes.string, @@ -89,6 +91,20 @@ export default function WifiGuestForm({ }))} {...props} /> +