MCPcopy Create free account
hub / github.com/TanStack/query / getQueryStatusColors

Function getQueryStatusColors

packages/query-devtools/src/Devtools.tsx:1980–1993  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1978 })
1979
1980 const getQueryStatusColors = () => {
1981 if (color() === 'gray') {
1982 return css`
1983 background-color: ${t(colors[color()][200], colors[color()][700])};
1984 color: ${t(colors[color()][700], colors[color()][300])};
1985 border-color: ${t(colors[color()][400], colors[color()][600])};
1986 `
1987 }
1988 return css`
1989 background-color: ${t(colors[color()][100], colors[color()][900])};
1990 color: ${t(colors[color()][700], colors[color()][300])};
1991 border-color: ${t(colors[color()][400], colors[color()][600])};
1992 `
1993 }
1994
1995 return (
1996 <Show when={activeQuery() && activeQueryState()}>

Callers 2

QueryDetailsFunction · 0.85
MutationDetailsFunction · 0.85

Calls 1

tFunction · 0.70

Tested by

no test coverage detected