mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-15 01:25:56 +08:00
Fix(FE): remove unused panel settings (#336)
* chore: unused settings are removed * chore: unused settings are removed * chore: unused settings are removed
This commit is contained in:
parent
56fcc0c4a7
commit
02446579a6
@ -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 InputComponent from 'components/Input';
|
||||||
import { GRAPH_TYPES } from 'container/NewDashboard/ComponentsSlider';
|
import { GRAPH_TYPES } from 'container/NewDashboard/ComponentsSlider';
|
||||||
import GraphTypes from 'container/NewDashboard/ComponentsSlider/menuItems';
|
import GraphTypes from 'container/NewDashboard/ComponentsSlider/menuItems';
|
||||||
@ -9,18 +15,22 @@ import { timePreferance } from './timeItems';
|
|||||||
const { TextArea } = Input;
|
const { TextArea } = Input;
|
||||||
import TimePreference from 'components/TimePreferenceDropDown';
|
import TimePreference from 'components/TimePreferenceDropDown';
|
||||||
|
|
||||||
import { Container, NullButtonContainer, TextContainer, Title } from './styles';
|
import {
|
||||||
|
Container,
|
||||||
|
// NullButtonContainer, TextContainer,
|
||||||
|
Title,
|
||||||
|
} from './styles';
|
||||||
|
|
||||||
const RightContainer = ({
|
const RightContainer = ({
|
||||||
description,
|
description,
|
||||||
opacity,
|
// opacity,
|
||||||
selectedNullZeroValue,
|
// selectedNullZeroValue,
|
||||||
setDescription,
|
setDescription,
|
||||||
setOpacity,
|
// setOpacity,
|
||||||
setSelectedNullZeroValue,
|
// setSelectedNullZeroValue,
|
||||||
setStacked,
|
// setStacked,
|
||||||
setTitle,
|
setTitle,
|
||||||
stacked,
|
// stacked,
|
||||||
title,
|
title,
|
||||||
selectedGraph,
|
selectedGraph,
|
||||||
setSelectedTime,
|
setSelectedTime,
|
||||||
@ -33,20 +43,20 @@ const RightContainer = ({
|
|||||||
[],
|
[],
|
||||||
);
|
);
|
||||||
|
|
||||||
const nullValueButtons = [
|
// const nullValueButtons = [
|
||||||
{
|
// {
|
||||||
check: 'zero',
|
// check: 'zero',
|
||||||
name: 'Zero',
|
// name: 'Zero',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
check: 'interpolate',
|
// check: 'interpolate',
|
||||||
name: 'Interpolate',
|
// name: 'Interpolate',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
check: 'blank',
|
// check: 'blank',
|
||||||
name: 'Blank',
|
// name: 'Blank',
|
||||||
},
|
// },
|
||||||
];
|
// ];
|
||||||
|
|
||||||
const selectedGraphType =
|
const selectedGraphType =
|
||||||
GraphTypes.find((e) => e.name === selectedGraph)?.display || '';
|
GraphTypes.find((e) => e.name === selectedGraph)?.display || '';
|
||||||
@ -86,7 +96,7 @@ const RightContainer = ({
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<TextContainer>
|
{/* <TextContainer>
|
||||||
<Typography>Stacked Graphs :</Typography>
|
<Typography>Stacked Graphs :</Typography>
|
||||||
<Switch
|
<Switch
|
||||||
checked={stacked}
|
checked={stacked}
|
||||||
@ -94,11 +104,11 @@ const RightContainer = ({
|
|||||||
setStacked((value) => !value);
|
setStacked((value) => !value);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</TextContainer>
|
</TextContainer> */}
|
||||||
|
|
||||||
<Title light={'true'}>Fill Opacity: </Title>
|
{/* <Title light={'true'}>Fill Opacity: </Title> */}
|
||||||
|
|
||||||
<Slider
|
{/* <Slider
|
||||||
value={parseInt(opacity, 10)}
|
value={parseInt(opacity, 10)}
|
||||||
marks={{
|
marks={{
|
||||||
0: '0',
|
0: '0',
|
||||||
@ -108,9 +118,9 @@ const RightContainer = ({
|
|||||||
}}
|
}}
|
||||||
onChange={(number): void => onChangeHandler(setOpacity, number.toString())}
|
onChange={(number): void => onChangeHandler(setOpacity, number.toString())}
|
||||||
step={1}
|
step={1}
|
||||||
/>
|
/> */}
|
||||||
|
|
||||||
<Title light={'true'}>Null/Zero values: </Title>
|
{/* <Title light={'true'}>Null/Zero values: </Title>
|
||||||
|
|
||||||
<NullButtonContainer>
|
<NullButtonContainer>
|
||||||
{nullValueButtons.map((button) => (
|
{nullValueButtons.map((button) => (
|
||||||
@ -124,7 +134,7 @@ const RightContainer = ({
|
|||||||
{button.name}
|
{button.name}
|
||||||
</Button>
|
</Button>
|
||||||
))}
|
))}
|
||||||
</NullButtonContainer>
|
</NullButtonContainer> */}
|
||||||
|
|
||||||
<Title light={'true'}>Panel Time Preference</Title>
|
<Title light={'true'}>Panel Time Preference</Title>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user