MCPcopy Create free account
hub / github.com/abi/screenshot-to-code / handleButtonClick

Function handleButtonClick

frontend/src/components/UpdateImageUpload.tsx:62–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60
61
62 const handleButtonClick = () => {
63 if (isAtLimit) {
64 toast.error(
65 `You’ve reached the limit of ${MAX_UPDATE_IMAGES} reference images. Remove one to add another.`
66 );
67 return;
68 }
69 fileInputRef.current?.click();
70 };
71
72 const handleFileInputChange = async (e: React.ChangeEvent<HTMLInputElement>) => {
73 const files = e.target.files;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected