mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 23:35:54 +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 { 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 = ({
|
||||
}
|
||||
/>
|
||||
|
||||
<TextContainer>
|
||||
{/* <TextContainer>
|
||||
<Typography>Stacked Graphs :</Typography>
|
||||
<Switch
|
||||
checked={stacked}
|
||||
@ -94,11 +104,11 @@ const RightContainer = ({
|
||||
setStacked((value) => !value);
|
||||
}}
|
||||
/>
|
||||
</TextContainer>
|
||||
</TextContainer> */}
|
||||
|
||||
<Title light={'true'}>Fill Opacity: </Title>
|
||||
{/* <Title light={'true'}>Fill Opacity: </Title> */}
|
||||
|
||||
<Slider
|
||||
{/* <Slider
|
||||
value={parseInt(opacity, 10)}
|
||||
marks={{
|
||||
0: '0',
|
||||
@ -108,9 +118,9 @@ const RightContainer = ({
|
||||
}}
|
||||
onChange={(number): void => onChangeHandler(setOpacity, number.toString())}
|
||||
step={1}
|
||||
/>
|
||||
/> */}
|
||||
|
||||
<Title light={'true'}>Null/Zero values: </Title>
|
||||
{/* <Title light={'true'}>Null/Zero values: </Title>
|
||||
|
||||
<NullButtonContainer>
|
||||
{nullValueButtons.map((button) => (
|
||||
@ -124,7 +134,7 @@ const RightContainer = ({
|
||||
{button.name}
|
||||
</Button>
|
||||
))}
|
||||
</NullButtonContainer>
|
||||
</NullButtonContainer> */}
|
||||
|
||||
<Title light={'true'}>Panel Time Preference</Title>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user