MCPcopy Index your code
hub / github.com/CapSoftware/Cap / commitValue

Function commitValue

apps/desktop/src/routes/editor/text-style.tsx:69–77  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

67 let colorInput!: HTMLInputElement;
68
69 const commitValue = (raw: string) => {
70 const normalized = normalizeOpaqueHexColor(raw);
71 if (normalized) {
72 props.onChange(normalized);
73 setText(normalized);
74 return true;
75 }
76 return false;
77 };
78
79 const selectBrandColor = (color: string) => {
80 setText(color);

Callers 1

HexColorInputFunction · 0.70

Calls 1

normalizeOpaqueHexColorFunction · 0.90

Tested by

no test coverage detected