1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Removing <Span /> component

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2020-12-22 12:51:57 +03:00
parent 125957ac85
commit 93008aed94
2 changed files with 0 additions and 21 deletions

View File

@ -1 +0,0 @@
export * from "./span";

View File

@ -1,20 +0,0 @@
import React from "react";
import { TooltipDecoratorProps, withTooltip } from "../tooltip";
export interface SpanProps extends React.HTMLAttributes<any>, TooltipDecoratorProps {
label?: React.ReactNode;
}
@withTooltip
export class Span extends React.Component<SpanProps> {
render() {
const { className, label, children, ...elemProps } = this.props;
return <>
<span className={className} {...elemProps}>
{label}
{children}
</span>
</>;
}
}