MCPcopy Create free account
hub / github.com/botbotrobotics/BotBrain / updateSettings

Function updateSettings

frontend/src/components/widgets/ButtonWidget.tsx:62–69  ·  view source on GitHub ↗
(updates: any)

Source from the content-addressed store, hash-verified

60
61 // Update dashboard context when settings change
62 const updateSettings = (updates: any) => {
63 const newProps = {
64 ...props,
65 ...updates,
66 };
67 updateWidgetProps(id, newProps);
68 return newProps;
69 };
70
71 const handleTitleChange = (newTitle: string) => {
72 setCurrentTitle(newTitle);

Callers 2

handleTitleChangeFunction · 0.70
handleButtonActionChangeFunction · 0.70

Calls 1

updateWidgetPropsFunction · 0.85

Tested by

no test coverage detected