From cd94857b13b0d932acd03974461162e27d65b023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Sat, 31 Aug 2024 18:59:32 +0200 Subject: [PATCH] "Refactor VaultPage component: remove unnecessary whitespace, reformat code, and reorganize tips and tricks section" --- client/homebrew/pages/vaultPage/vaultPage.jsx | 52 +++++++++++++------ 1 file changed, 36 insertions(+), 16 deletions(-) diff --git a/client/homebrew/pages/vaultPage/vaultPage.jsx b/client/homebrew/pages/vaultPage/vaultPage.jsx index 7f9310a3c..daba3c67b 100644 --- a/client/homebrew/pages/vaultPage/vaultPage.jsx +++ b/client/homebrew/pages/vaultPage/vaultPage.jsx @@ -140,7 +140,7 @@ const VaultPage = (props) => { setV3(v3); setLegacy(legacy); } - + // Perform search with the latest input values, because state is not fast enough performSearch({ title, author, count, v3, legacy }); @@ -177,7 +177,8 @@ const VaultPage = (props) => { const isAuthorValid = authorInput.validity.valid && authorInput.value; const isCheckboxChecked = legacyCheckbox.checked || v3Checkbox.checked; - const isFormValid = (isTitleValid || isAuthorValid) && isCheckboxChecked; + const isFormValid = + (isTitleValid || isAuthorValid) && isCheckboxChecked; return isFormValid; }; @@ -211,10 +212,7 @@ const VaultPage = (props) => { placeholder="v3 Reference Document" /> - - Tip! you can use - to negate words, and{' '} - "word" to specify an exact string. - + - - Remember, usernames are case sensitive. - +