MCPcopy Create free account
hub / github.com/Jenifer2833/fullstack-chat-app / removeImage

Function removeImage

frontend/src/components/MessageInput.jsx:27–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 };
26
27 const removeImage=()=>{
28 setImagePreview(null);
29 if(fileInputRef.current) fileInputRef.current.value="";
30 };
31
32 const handleSendMessage= async(e)=>{
33 e.preventDefault();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected