Skip to content

Commit bafcdbf

Browse files
committed
light adjustments to structure of compoment
1 parent 1e2ee13 commit bafcdbf

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

app/containers/GraphsContainer/GraphsContainer.tsx

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ interface Params {
3333
const GraphsContainer: React.FC = React.memo(() => {
3434

3535
const { app, service } = useParams<keyof Params>() as Params;
36-
const [live, setLive] = useState<boolean>(false);
36+
const [ live, setLive ] = useState<boolean>(false);
3737
const { intervalID, setIntervalID } = useContext(ApplicationContext);
3838
const { getSavedMetrics } = useContext(ApplicationContext);
3939
const { fetchHealthData, setHealthData } = useContext(HealthContext);
@@ -42,9 +42,7 @@ const GraphsContainer: React.FC = React.memo(() => {
4242
// const { fetchKafkaEventData, setKafkaEventData } = useContext(EventContext);
4343
// const { fetchKubernetesEventData, setKubernetesEventData } = useContext(EventContext);
4444
const { fetchCommsData } = useContext(CommsContext);
45-
// const { selectedMetrics } = useContext(QueryContext);
4645
const [chart, setChart] = useState<string>('all');
47-
// const [prevRoute, setPrevRoute] = useState<string>('');
4846
const { mode } = useContext(DashboardContext.DashboardContext);
4947
let [inspect, setInspect] = useState<boolean>(false);
5048

@@ -130,7 +128,8 @@ const GraphsContainer: React.FC = React.memo(() => {
130128
<TransferColumns />
131129
</div>
132130
)}
133-
{chart.startsWith('health_') ?
131+
{
132+
chart.startsWith('health_') ?
134133
<HealthContainer
135134
sizing="solo"
136135
category={chart.substring(7)}
@@ -143,15 +142,17 @@ const GraphsContainer: React.FC = React.memo(() => {
143142
:
144143
chart.startsWith('docker_') ?
145144

146-
<DockerHealthContainer
147-
sizing="solo"
148-
category={chart.substring(7)}
149-
/>
145+
<DockerHealthContainer
146+
sizing="solo"
147+
category={chart.substring(7)}
148+
/>
150149
:
151-
<>
152-
</>
150+
<></>
153151
}
154-
{chart === 'modifyMetrics' && <ModifyMetrics />}
152+
{
153+
chart === 'modifyMetrics' &&
154+
<ModifyMetrics />
155+
}
155156
</div>
156157
)}
157158
</div>

0 commit comments

Comments
 (0)