MCPcopy Create free account
hub / github.com/codemistic/Web-Development / sendPost

Function sendPost

Yet Another LinkedIn Clone/Feed.js:34–46  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

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">

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected