Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-shorpo committed Nov 4, 2023
1 parent 6286878 commit f9c657d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions packages/app/src/LogSidePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,8 @@ function TraceSubpanel({
}) => string;

onPropertyAddClick?: (name: string, value: string) => void;
displayedColumns: string[];
toggleColumn: (column: string) => void;
displayedColumns?: string[];
toggleColumn?: (column: string) => void;
}) {
const date = new Date(logData.timestamp);
const start = add(date, { minutes: -240 });
Expand Down Expand Up @@ -1666,11 +1666,11 @@ function PropertySubpanel({
className="fs-8 text-muted-hover child-hover-trigger p-0"
variant="link"
as="a"
title={`${
title={
displayedColumns?.includes(keyPathString)
? 'Remove'
: 'Add'
} ${keyPathString} column`}
? `Remove ${keyPathString} column from results table`
: `Add ${keyPathString} column to results table`
}
style={{ width: 20 }}
onClick={() => toggleColumn(keyPathString)}
>
Expand Down Expand Up @@ -2080,8 +2080,8 @@ export default function LogSidePanel({
}) => string;
sortKey: string | undefined;
isNestedPanel?: boolean;
displayedColumns: string[];
toggleColumn: (column: string) => void;
displayedColumns?: string[];
toggleColumn?: (column: string) => void;
}) {
const contextZIndex = useZIndex();

Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/LogTableWithSidePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import usePortal from 'react-useportal';
import type { LogView } from './types';
import LogSidePanel from './LogSidePanel';
import LogTable from './LogTable';
import { useDisplayedColumns } from './hooks/useDisplayedColumns';
import { useDisplayedColumns } from './useDisplayedColumns';

export function LogTableWithSidePanel({
config,
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/SearchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import SearchPageActionBar from './SearchPageActionBar';
import { useTimeQuery } from './timeQuery';
import { MemoPatternTableWithSidePanel } from './PatternTableWithSidePanel';
import { ErrorBoundary } from 'react-error-boundary';
import { useDisplayedColumns } from './hooks/useDisplayedColumns';
import { useDisplayedColumns } from './useDisplayedColumns';

const formatDate = (
date: Date,
Expand Down
File renamed without changes.

0 comments on commit f9c657d

Please sign in to comment.