From ade8bc7d68922543ab74ee2d41920de139fd0bd3 Mon Sep 17 00:00:00 2001 From: olekstomek Date: Sun, 8 Aug 2021 18:26:48 +0200 Subject: Support Hidden WiFi networks (#101) * ability to set that WiFi network is hidden * fix: hide password checbox hidden chebox with hidden SSID option * improvement, delete constant * merge master * add a setting - the WiFi network can have a hidden SSID * update translation for English and Polish language * change one line translation in Eng, add semicolon in format to connect to WiFi --- src/App.js | 6 ++++++ src/components/Settings.js | 5 +++++ src/components/WifiCard.js | 2 +- src/translations.js | 4 +++- 4 files changed, 15 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/App.js b/src/App.js index b6862aa..cf0ebd2 100644 --- a/src/App.js +++ b/src/App.js @@ -20,6 +20,8 @@ function App() { encryptionMode: 'WPA', // Settings: Hide password on the printed card hidePassword: false, + // Settings: Mark your network as hidden SSID + hiddenSSID: false, // Settings: Portrait orientation portrait: false, }); @@ -87,6 +89,9 @@ function App() { const onHidePasswordChange = (hidePassword) => { setSettings({ ...settings, hidePassword }); }; + const onHiddenSSIDChange = (hiddenSSID) => { + setSettings({ ...settings, hiddenSSID }); + }; const onFirstLoad = () => { html.style.direction = htmlDirection(); firstLoad.current = false; @@ -129,6 +134,7 @@ function App() { onEncryptionModeChange={onEncryptionModeChange} onOrientationChange={onOrientationChange} onHidePasswordChange={onHidePasswordChange} + onHiddenSSIDChange={onHiddenSSIDChange} />