MCPcopy Create free account
hub / github.com/aghyad97/browserytools / removeCustomColor

Function removeCustomColor

src/components/ChartCustomizationPanel.tsx:76–79  ·  view source on GitHub ↗
(color: string)

Source from the content-addressed store, hash-verified

74 };
75
76 const removeCustomColor = (color: string) => {
77 const newColors = settings.customColors.filter((c) => c !== color);
78 updateSetting("customColors", newColors);
79 };
80
81 const applyThemePreset = (presetId: string) => {
82 const preset = THEME_PRESETS.find((p) => p.id === presetId);

Callers

nothing calls this directly

Calls 2

updateSettingFunction · 0.70
filterMethod · 0.45

Tested by

no test coverage detected