Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyOplachko committed Jun 12, 2024
1 parent 43a2505 commit 5bb9ba4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export const ConfigureParsedViewModal = ({ isModalOpen, onModalClose, data, setD
})
})
setLabelList(Array.from(labelMap.values()))
console.log(labelMap)
}, [fullData])
const moveCard = useCallback((dragIndex: number, hoverIndex: number) => {
setDataSchemeValue((prevCards: ParsedLabel[]) => {
Expand Down Expand Up @@ -76,7 +75,6 @@ export const ConfigureParsedViewModal = ({ isModalOpen, onModalClose, data, setD
};
input.click();
}
console.log(dataScheme)
const [isDragMode, setIsDragMode] = useState(false)
return (
<DndProvider backend={HTML5Backend}>
Expand Down
3 changes: 0 additions & 3 deletions src/components/FlowModal/ParsedView/ParsedView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { useEffect, useState } from 'react';
import { DetailItem } from '../DetailItem';
import { ParsedLabel } from './DataScheme';
import { parseDataIntoListOfFields } from 'helpers/dataProcessors/parseDataIntoListOfFields';
import { sampleParsedViewConfig, sampleParsedViewConfig2 } from 'test-samples/sample-parsed-view-config';
interface Value {
value: string
title: string
Expand All @@ -14,9 +13,7 @@ interface Props {
dataScheme: ParsedLabel[]
}
export const ParsedView: React.FC<any> = ({ data, theme, dataScheme }: Props): JSX.Element | null => {
console.log(data)
const [values, setValues] = useState<Value[]>([])
dataScheme = sampleParsedViewConfig2
useEffect(() => {
parseData(data, dataScheme, setValues);
}, [data, dataScheme])
Expand Down
2 changes: 0 additions & 2 deletions src/components/FlowPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { pcapExporter, textExporter } from 'helpers/exporters';
import { FlowOptions } from 'types.js';
import { FilterPanel, Filters, defaultFilters } from './FilterPanel/FilterPanel';
import { FlowModal } from './FlowModal/FlowModal';
import { sampleData } from 'test-samples/sample-data';



Expand Down Expand Up @@ -79,7 +78,6 @@ const getStyles = ({ name: themeName }: GrafanaTheme2) => {


export const FlowPanel = ({ options, data, width, height }: MyPanelProps) => {
data = sampleData
const [flowData, setFlowData] = useState({ actors: [], data: [] });
const [modalIsOpen, setModalIsOpen] = useState(false);
const [modalData, setModalData] = useState({});
Expand Down

0 comments on commit 5bb9ba4

Please sign in to comment.