mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-27 15:18:08 +00:00
* feat: metrics builder metrics name suggestion UX changes * feat: metrics builder metric name and single value selection * feat: code cleanup * feat: improved ts typings Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
35 lines
858 B
TypeScript
35 lines
858 B
TypeScript
import React, { memo } from 'react';
|
|
|
|
import { NewWidgetProps } from '../index';
|
|
import { timePreferance } from '../RightContainer/timeItems';
|
|
import QuerySection from './QuerySection';
|
|
import { QueryContainer } from './styles';
|
|
import WidgetGraph from './WidgetGraph';
|
|
|
|
function LeftContainer({
|
|
selectedGraph,
|
|
selectedTime,
|
|
yAxisUnit,
|
|
handleUnstagedChanges,
|
|
}: LeftContainerProps): JSX.Element {
|
|
return (
|
|
<>
|
|
<WidgetGraph selectedGraph={selectedGraph} yAxisUnit={yAxisUnit} />
|
|
<QueryContainer>
|
|
<QuerySection
|
|
selectedTime={selectedTime}
|
|
handleUnstagedChanges={handleUnstagedChanges}
|
|
selectedGraph={selectedGraph}
|
|
/>
|
|
</QueryContainer>
|
|
</>
|
|
);
|
|
}
|
|
|
|
interface LeftContainerProps extends NewWidgetProps {
|
|
selectedTime: timePreferance;
|
|
handleUnstagedChanges: (arg0: boolean) => void;
|
|
}
|
|
|
|
export default memo(LeftContainer);
|