()
| 29 | |
| 30 | } |
| 31 | const register = () => { |
| 32 | if (!name) { |
| 33 | return alert('Please enter a full name!'); |
| 34 | } |
| 35 | |
| 36 | auth.createUserWithEmailAndPassword(email, password).then( |
| 37 | (userAuth) => { |
| 38 | userAuth.user.updateProfile({ |
| 39 | displayName: name, |
| 40 | photoURL: profilePic, |
| 41 | }) |
| 42 | .then(() => { |
| 43 | dispatch(login({ |
| 44 | email: userAuth.user.email, |
| 45 | uid: userAuth.user.uid, |
| 46 | displayName: name, |
| 47 | photoURL: profilePic, |
| 48 | }) |
| 49 | ) |
| 50 | }) |
| 51 | }) |
| 52 | .catch((error) => alert(error)) |
| 53 | } |
| 54 | return ( |
| 55 | <div className='login'> |
| 56 | <img src="https://logos-world.net/wp-content/uploads/2020/04/Linkedin-Logo-2011-2019.png" alt="" /> |
nothing calls this directly
no outgoing calls
no test coverage detected