diff --git a/src/components/Password-Generator/PasswordGeneratorComponent.tsx b/src/components/Password-Generator/PasswordGeneratorComponent.tsx index 7fc4173..d8a5190 100644 --- a/src/components/Password-Generator/PasswordGeneratorComponent.tsx +++ b/src/components/Password-Generator/PasswordGeneratorComponent.tsx @@ -19,13 +19,14 @@ export default () => { const [password, setPassword] = createSignal('') const [showAlert, setShowAlert] = createSignal(false) + const generatePassword = () => { let characters = '' if (uppercase()) characters += 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' if (lowercase()) characters += 'abcdefghijklmnopqrstuvwxyz' if (numbers()) characters += '0123456789' if (symbols()) characters += '!@#$%^&*()_+-=[]{}|;:,.<>?~' - if (emojis()) characters += '😊🙂😅🤩😜😝🐯🐱🐵🦊🦁🐷🐮🧭' + if (emojis()) characters += '😊🙂😅🤩😜😝🐯🐱🐵🦊🦁🐷🐮🧭🦄🥝🏛️' let passwordArray = Array.from({ length: length() }, () => characters[Math.floor(Math.random() * characters.length)]) setPassword(passwordArray.join('')) @@ -154,13 +155,7 @@ export default () => {
Generated Password:
-{password()}
-