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