(e)
| 32 | }, []); |
| 33 | |
| 34 | const sendPost = (e) => { |
| 35 | e.preventDefault(); |
| 36 | |
| 37 | db.collection("posts").add({ |
| 38 | name: user.displayName, |
| 39 | description: user.email, |
| 40 | message: input, |
| 41 | photoUrl: user.photoUrl || "", |
| 42 | timestamp: firebase.firestore.FieldValue.serverTimestamp(), |
| 43 | }); |
| 44 | |
| 45 | setInput(""); |
| 46 | }; |
| 47 | |
| 48 | return ( |
| 49 | <div className="feed"> |
nothing calls this directly
no outgoing calls
no test coverage detected