From ba6818f48790ddd45f6ae53c3d7d3b24e07299fc Mon Sep 17 00:00:00 2001 From: Palash Gupta Date: Wed, 25 Jan 2023 14:55:39 +0530 Subject: [PATCH] fix: total count is usage explorer (#2117) * fix: total count is usage explorer * chore: no spans found is also wrapped under typography --- frontend/src/modules/Usage/UsageExplorer.tsx | 28 +++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/frontend/src/modules/Usage/UsageExplorer.tsx b/frontend/src/modules/Usage/UsageExplorer.tsx index ec37b6ae33..4550e9dac9 100644 --- a/frontend/src/modules/Usage/UsageExplorer.tsx +++ b/frontend/src/modules/Usage/UsageExplorer.tsx @@ -1,7 +1,7 @@ /* eslint-disable */ //@ts-nocheck -import { Select, Space } from 'antd'; +import { Select, Space, Typography } from 'antd'; import Graph from 'components/Graph'; import React, { useEffect, useState } from 'react'; import { connect, useSelector } from 'react-redux'; @@ -84,7 +84,7 @@ function _UsageExplorer(props: UsageExplorerProps): JSX.Element { if (selectedTime && selectedInterval) { const maxTime = new Date().getTime() * 1000000; const minTime = maxTime - selectedTime.value * 24 * 3600000 * 1000000; - + getUsageData(minTime, maxTime, selectedInterval.value, selectedService); } }, [selectedTime, selectedInterval, selectedService, getUsageData]); @@ -171,20 +171,22 @@ function _UsageExplorer(props: UsageExplorerProps): JSX.Element { justifyContent: 'center', }} > - No spans found. Please add instrumentation (follow this - - guide - - ) + + No spans found. Please add instrumentation (follow this + + guide + + ) + ) : ( - {`Total count is ${totalCount}`} + {`Total count is ${totalCount}`} )}