From 5bb9ba4bce3277841264dbb373b00adfd98442f2 Mon Sep 17 00:00:00 2001 From: Alexey Oplachko Date: Wed, 12 Jun 2024 11:07:30 +0300 Subject: [PATCH] chore: cleanup --- .../FlowModal/ParsedView/Configure/ConfigureParsedView.tsx | 2 -- src/components/FlowModal/ParsedView/ParsedView.tsx | 3 --- src/components/FlowPanel.tsx | 2 -- 3 files changed, 7 deletions(-) diff --git a/src/components/FlowModal/ParsedView/Configure/ConfigureParsedView.tsx b/src/components/FlowModal/ParsedView/Configure/ConfigureParsedView.tsx index 824d6ac..7cdfe35 100644 --- a/src/components/FlowModal/ParsedView/Configure/ConfigureParsedView.tsx +++ b/src/components/FlowModal/ParsedView/Configure/ConfigureParsedView.tsx @@ -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[]) => { @@ -76,7 +75,6 @@ export const ConfigureParsedViewModal = ({ isModalOpen, onModalClose, data, setD }; input.click(); } - console.log(dataScheme) const [isDragMode, setIsDragMode] = useState(false) return ( diff --git a/src/components/FlowModal/ParsedView/ParsedView.tsx b/src/components/FlowModal/ParsedView/ParsedView.tsx index 05c0e4c..4ba4742 100644 --- a/src/components/FlowModal/ParsedView/ParsedView.tsx +++ b/src/components/FlowModal/ParsedView/ParsedView.tsx @@ -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 @@ -14,9 +13,7 @@ interface Props { dataScheme: ParsedLabel[] } export const ParsedView: React.FC = ({ data, theme, dataScheme }: Props): JSX.Element | null => { - console.log(data) const [values, setValues] = useState([]) - dataScheme = sampleParsedViewConfig2 useEffect(() => { parseData(data, dataScheme, setValues); }, [data, dataScheme]) diff --git a/src/components/FlowPanel.tsx b/src/components/FlowPanel.tsx index 4d85b4d..7db723a 100644 --- a/src/components/FlowPanel.tsx +++ b/src/components/FlowPanel.tsx @@ -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'; @@ -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({});