From 02446579a68780da316af1690b8dbb96be0a8493 Mon Sep 17 00:00:00 2001
From: pal-sig <88981777+pal-sig@users.noreply.github.com>
Date: Mon, 11 Oct 2021 16:35:20 +0530
Subject: [PATCH] Fix(FE): remove unused panel settings (#336)
* chore: unused settings are removed
* chore: unused settings are removed
* chore: unused settings are removed
---
.../NewWidget/RightContainer/index.tsx | 68 +++++++++++--------
1 file changed, 39 insertions(+), 29 deletions(-)
diff --git a/frontend/src/container/NewWidget/RightContainer/index.tsx b/frontend/src/container/NewWidget/RightContainer/index.tsx
index 651725459e..079c5d48e1 100644
--- a/frontend/src/container/NewWidget/RightContainer/index.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/index.tsx
@@ -1,4 +1,10 @@
-import { Button, Input, Slider, Switch, Typography } from 'antd';
+import {
+ // Button,
+ Input,
+ // Slider,
+ // Switch,
+ // Typography,
+} from 'antd';
import InputComponent from 'components/Input';
import { GRAPH_TYPES } from 'container/NewDashboard/ComponentsSlider';
import GraphTypes from 'container/NewDashboard/ComponentsSlider/menuItems';
@@ -9,18 +15,22 @@ import { timePreferance } from './timeItems';
const { TextArea } = Input;
import TimePreference from 'components/TimePreferenceDropDown';
-import { Container, NullButtonContainer, TextContainer, Title } from './styles';
+import {
+ Container,
+ // NullButtonContainer, TextContainer,
+ Title,
+} from './styles';
const RightContainer = ({
description,
- opacity,
- selectedNullZeroValue,
+ // opacity,
+ // selectedNullZeroValue,
setDescription,
- setOpacity,
- setSelectedNullZeroValue,
- setStacked,
+ // setOpacity,
+ // setSelectedNullZeroValue,
+ // setStacked,
setTitle,
- stacked,
+ // stacked,
title,
selectedGraph,
setSelectedTime,
@@ -33,20 +43,20 @@ const RightContainer = ({
[],
);
- const nullValueButtons = [
- {
- check: 'zero',
- name: 'Zero',
- },
- {
- check: 'interpolate',
- name: 'Interpolate',
- },
- {
- check: 'blank',
- name: 'Blank',
- },
- ];
+ // const nullValueButtons = [
+ // {
+ // check: 'zero',
+ // name: 'Zero',
+ // },
+ // {
+ // check: 'interpolate',
+ // name: 'Interpolate',
+ // },
+ // {
+ // check: 'blank',
+ // name: 'Blank',
+ // },
+ // ];
const selectedGraphType =
GraphTypes.find((e) => e.name === selectedGraph)?.display || '';
@@ -86,7 +96,7 @@ const RightContainer = ({
}
/>
-