- {isExplorerOptionHidden && (
- <>
- {isQueryUpdated && (
-
-
- }
- />
-
-
- }
- />
-
-
- )}
-
- >
- )}
-
- );
-}
-
-ExplorerOptionsDroppableArea.defaultProps = {
- isExplorerOptionHidden: undefined,
- setIsExplorerOptionHidden: undefined,
-};
-
-export default ExplorerOptionsDroppableArea;
diff --git a/frontend/src/container/ExplorerOptions/utils.ts b/frontend/src/container/ExplorerOptions/utils.ts
index d94e64161e..e3ac710609 100644
--- a/frontend/src/container/ExplorerOptions/utils.ts
+++ b/frontend/src/container/ExplorerOptions/utils.ts
@@ -1,6 +1,5 @@
import { Color } from '@signozhq/design-tokens';
import { showErrorNotification } from 'components/ExplorerCard/utils';
-import { LOCALSTORAGE } from 'constants/localStorage';
import { QueryParams } from 'constants/query';
import ROUTES from 'constants/routes';
import { mapQueryDataFromApi } from 'lib/newQueryBuilder/queryBuilderMappers/mapQueryDataFromApi';
@@ -68,54 +67,3 @@ export const generateRGBAFromHex = (hex: string, opacity: number): string =>
hex.slice(3, 5),
16,
)}, ${parseInt(hex.slice(5, 7), 16)}, ${opacity})`;
-
-export const getExplorerToolBarVisibility = (dataSource: string): boolean => {
- try {
- const showExplorerToolbar = localStorage.getItem(
- LOCALSTORAGE.SHOW_EXPLORER_TOOLBAR,
- );
- if (showExplorerToolbar === null) {
- const parsedShowExplorerToolbar: {
- [DataSource.LOGS]: boolean;
- [DataSource.TRACES]: boolean;
- [DataSource.METRICS]: boolean;
- } = {
- [DataSource.METRICS]: true,
- [DataSource.TRACES]: true,
- [DataSource.LOGS]: true,
- };
- localStorage.setItem(
- LOCALSTORAGE.SHOW_EXPLORER_TOOLBAR,
- JSON.stringify(parsedShowExplorerToolbar),
- );
- return true;
- }
- const parsedShowExplorerToolbar = JSON.parse(showExplorerToolbar || '{}');
- return parsedShowExplorerToolbar[dataSource];
- } catch (error) {
- console.error(error);
- return false;
- }
-};
-
-export const setExplorerToolBarVisibility = (
- value: boolean,
- dataSource: string,
-): void => {
- try {
- const showExplorerToolbar = localStorage.getItem(
- LOCALSTORAGE.SHOW_EXPLORER_TOOLBAR,
- );
- if (showExplorerToolbar) {
- const parsedShowExplorerToolbar = JSON.parse(showExplorerToolbar);
- parsedShowExplorerToolbar[dataSource] = value;
- localStorage.setItem(
- LOCALSTORAGE.SHOW_EXPLORER_TOOLBAR,
- JSON.stringify(parsedShowExplorerToolbar),
- );
- return;
- }
- } catch (error) {
- console.error(error);
- }
-};
diff --git a/frontend/src/container/LogsExplorerViews/index.tsx b/frontend/src/container/LogsExplorerViews/index.tsx
index 45b33d01af..a12fd80997 100644
--- a/frontend/src/container/LogsExplorerViews/index.tsx
+++ b/frontend/src/container/LogsExplorerViews/index.tsx
@@ -14,7 +14,7 @@ import {
PANEL_TYPES,
} from 'constants/queryBuilder';
import { DEFAULT_PER_PAGE_VALUE } from 'container/Controls/config';
-import ExplorerOptionWrapper from 'container/ExplorerOptions/ExplorerOptionWrapper';
+import ExplorerOptions from 'container/ExplorerOptions/ExplorerOptions';
import GoToTop from 'container/GoToTop';
import LogsExplorerChart from 'container/LogsExplorerChart';
import LogsExplorerList from 'container/LogsExplorerList';
@@ -634,7 +634,7 @@ function LogsExplorerViews({