mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-17 23:47:12 +00:00
* chore: added jsx-runtime plugin in eslint tsconfig Signed-off-by: GermaVinsmoke <vaibhav1180@gmail.com> * chore: updated react imports Signed-off-by: GermaVinsmoke <vaibhav1180@gmail.com> * chore: renamed redux dispatch Signed-off-by: GermaVinsmoke <vaibhav1180@gmail.com> * fix: build is fixed --------- Signed-off-by: GermaVinsmoke <vaibhav1180@gmail.com> Co-authored-by: Palash Gupta <palashgdev@gmail.com>
23 lines
461 B
TypeScript
23 lines
461 B
TypeScript
import { Container, Service, Span, SpanWrapper } from './styles';
|
|
|
|
function SpanNameComponent({
|
|
name,
|
|
serviceName,
|
|
}: SpanNameComponentProps): JSX.Element {
|
|
return (
|
|
<Container title={`${name} ${serviceName}`}>
|
|
<SpanWrapper>
|
|
<Span ellipsis>{name}</Span>
|
|
<Service ellipsis>{serviceName}</Service>
|
|
</SpanWrapper>
|
|
</Container>
|
|
);
|
|
}
|
|
|
|
interface SpanNameComponentProps {
|
|
name: string;
|
|
serviceName: string;
|
|
}
|
|
|
|
export default SpanNameComponent;
|