MCPcopy Create free account
hub / github.com/OpenSignLabs/OpenSign / onStampChange

Function onStampChange

apps/OpenSign/src/pages/Managesign.jsx:316–325  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

314 }
315 };
316 const onStampChange = async (event) => {
317 if (event.target.files && event.target.files[0]) {
318 const file = event.target.files[0];
319 const base64Img = await toDataUrl(file);
320 setStamp(base64Img);
321 setIsValue(true);
322 } else {
323 setStamp("");
324 }
325 };
326 return (
327 <div className="relative h-full bg-base-100 text-base-content flex shadow-md rounded-box overflow-auto">
328 {isLoader && (

Callers

nothing calls this directly

Calls 1

toDataUrlFunction · 0.90

Tested by

no test coverage detected