fix: total count is usage explorer (#2117)

* fix: total count is usage explorer

* chore: no spans found is also wrapped under typography
This commit is contained in:
Palash Gupta 2023-01-25 14:55:39 +05:30 committed by GitHub
parent ca53136cbf
commit ba6818f487
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
/* eslint-disable */ /* eslint-disable */
//@ts-nocheck //@ts-nocheck
import { Select, Space } from 'antd'; import { Select, Space, Typography } from 'antd';
import Graph from 'components/Graph'; import Graph from 'components/Graph';
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import { connect, useSelector } from 'react-redux'; import { connect, useSelector } from 'react-redux';
@ -171,6 +171,7 @@ function _UsageExplorer(props: UsageExplorerProps): JSX.Element {
justifyContent: 'center', justifyContent: 'center',
}} }}
> >
<Typography>
No spans found. Please add instrumentation (follow this No spans found. Please add instrumentation (follow this
<a <a
href="https://signoz.io/docs/instrumentation/overview" href="https://signoz.io/docs/instrumentation/overview"
@ -181,10 +182,11 @@ function _UsageExplorer(props: UsageExplorerProps): JSX.Element {
guide guide
</a> </a>
) )
</Typography>
</Space> </Space>
) : ( ) : (
<Space style={{ display: 'block', marginLeft: 20, width: 200 }}> <Space style={{ display: 'block', marginLeft: 20, width: 200 }}>
{`Total count is ${totalCount}`} <Typography>{`Total count is ${totalCount}`}</Typography>
</Space> </Space>
)} )}
</Space> </Space>