|
1 | 1 | import { Fragment, memo, ReactNode, useCallback, useMemo, useRef, useState } from 'react';
|
2 |
| -import { formatDate, formatISO, parse as parseDate } from 'date-fns'; |
| 2 | +import { formatDate, formatISO } from 'date-fns'; |
3 | 3 | import { formatInTimeZone, toZonedTime } from 'date-fns-tz';
|
4 | 4 | import {
|
5 | 5 | ArrowDown,
|
@@ -218,7 +218,7 @@ const TrafficBucketDiagram = memo(function Traffic(props: TrafficProps) {
|
218 | 218 | />
|
219 | 219 | <Bar stackId="all" dataKey="ok" fill="var(--color-ok)" name="Ok" />
|
220 | 220 | <Bar stackId="all" dataKey="error" fill="var(--color-error)" name="Error" />
|
221 |
| - // TODO: hide this if there is no filter declared |
| 221 | + {/*TODO: hide this if there is no filter declared */} |
222 | 222 | <Bar stackId="all" dataKey="remaining" fill="rgba(170,175,180,0.1)" name="Filtered out" />
|
223 | 223 | {refAreaLeft && refAreaRight && (
|
224 | 224 | <ReferenceArea x1={refAreaLeft} x2={refAreaRight} fill="white" fillOpacity={0.2} />
|
@@ -247,19 +247,6 @@ type SortProps = {
|
247 | 247 | sorting: SortState;
|
248 | 248 | };
|
249 | 249 |
|
250 |
| -const TargetTracesPaginationShape = z.object({ |
251 |
| - pageIndex: z.number().min(0).default(0), |
252 |
| - pageSize: z.number().min(10).max(100).default(20), |
253 |
| -}); |
254 |
| -export const TargetTracesPagination = { |
255 |
| - shape: TargetTracesPaginationShape, |
256 |
| -}; |
257 |
| - |
258 |
| -export type PaginationState = z.infer<typeof TargetTracesPaginationShape>; |
259 |
| -type PaginationProps = { |
260 |
| - pagination: PaginationState; |
261 |
| -}; |
262 |
| - |
263 | 250 | const TracesList_Trace = graphql(`
|
264 | 251 | fragment TracesList_Trace on Trace {
|
265 | 252 | id
|
|
0 commit comments