MCPcopy Index your code
hub / github.com/codeaashu/claude-code / resolve

Function resolve

web/components/layout/ThemeProvider.tsx:27–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 const mediaQuery = window.matchMedia("(prefers-color-scheme: dark)");
26
27 const resolve = () => {
28 if (settings.theme === "system") {
29 return mediaQuery.matches ? "dark" : "light";
30 }
31 return settings.theme;
32 };
33
34 const apply = () => {
35 const resolved = resolve();

Callers 1

applyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected