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

Function handleBeautifyClick

client/src/components/bodyEditor/BodyEditor.tsx:33–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}: BodyEditorProps) {
32 const toast = useToast();
33 function handleBeautifyClick() {
34 try {
35 if (!content) return;
36 const beautifiedBody = beautifyBody(content, contentType);
37 setContent(beautifiedBody);
38 } catch (e) {
39 errorToast('Could not format body.', toast);
40 }
41 }
42
43 let editor = null;
44 switch (contentType) {

Callers

nothing calls this directly

Calls 2

beautifyBodyFunction · 0.90
errorToastFunction · 0.90

Tested by

no test coverage detected