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

Function getQueryStatusColors

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

Source from the content-addressed store, hash-verified

2105 })
2106
2107 const getQueryStatusColors = () => {
2108 if (color() === 'gray') {
2109 return css`
2110 background-color: ${t(colors[color()][200], colors[color()][700])};
2111 color: ${t(colors[color()][700], colors[color()][300])};
2112 border-color: ${t(colors[color()][400], colors[color()][600])};
2113 `
2114 }
2115 return css`
2116 background-color: ${t(colors[color()][100], colors[color()][900])};
2117 color: ${t(colors[color()][700], colors[color()][300])};
2118 border-color: ${t(colors[color()][400], colors[color()][600])};
2119 `
2120 }
2121
2122 return (
2123 <Show when={activeQuery() && activeQueryState()}>

Callers 2

QueryDetailsFunction · 0.85
MutationDetailsFunction · 0.85

Calls 1

tFunction · 0.70

Tested by

no test coverage detected