MCPcopy Create free account
hub / github.com/SensAI-PT/RAGMeUp / handleSubmit

Function handleSubmit

ui/node-react/client/src/components/FeedbackModal.js:7–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5 const [error, setError] = useState('');
6
7 const handleSubmit = () => {
8 if (text.length < 10) {
9 setError('Please provide at least 10 characters of feedback.');
10 return;
11 }
12 onSubmit(text);
13 };
14
15 return (
16 <div className="modal-overlay" onClick={onClose}>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected