(key)
| 235 | }, [filtered, grouped, insideProgramPage, sortKey, sortDir]); |
| 236 | |
| 237 | const handleSort = (key) => { |
| 238 | if (sortKey !== key) { |
| 239 | setSortKey(key); |
| 240 | setSortDir("asc"); |
| 241 | } else if (sortDir === "asc") { |
| 242 | setSortDir("desc"); |
| 243 | } else { |
| 244 | setSortKey(null); |
| 245 | setSortDir(null); |
| 246 | } |
| 247 | }; |
| 248 | |
| 249 | const renderRow = (_index, row) => { |
| 250 | if (row.type === "group") { |
nothing calls this directly
no outgoing calls
no test coverage detected