MCPcopy Create free account
hub / github.com/EsperoTech/yaade / handleBeautifyClick

Function handleBeautifyClick

client/src/components/scriptPanel/ScriptTab.tsx:91–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89 }, [ref, setContainer]);
90
91 function handleBeautifyClick() {
92 try {
93 const beautifiedBody = beautify(script, { format: 'js' });
94 setScript(beautifiedBody);
95 } catch (e) {
96 errorToast('Could not format script.', toast);
97 }
98 }
99
100 return (
101 <div style={{ height: '100%' }}>

Callers

nothing calls this directly

Calls 1

errorToastFunction · 0.90

Tested by

no test coverage detected