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

Function getObserverCountColorStyles

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

Source from the content-addressed store, hash-verified

1425 )
1426
1427 const getObserverCountColorStyles = () => {
1428 if (color() === 'gray') {
1429 return css`
1430 background-color: ${t(colors[color()][200], colors[color()][700])};
1431 color: ${t(colors[color()][700], colors[color()][300])};
1432 `
1433 }
1434
1435 return css`
1436 background-color: ${t(
1437 colors[color()][200] + alpha[80],
1438 colors[color()][900],
1439 )};
1440 color: ${t(colors[color()][800], colors[color()][300])};
1441 `
1442 }
1443
1444 return (
1445 <Show when={queryState()}>

Callers 2

QueryRowFunction · 0.85
MutationRowFunction · 0.85

Calls 1

tFunction · 0.70

Tested by

no test coverage detected