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:
parent
125957ac85
commit
93008aed94
@ -1 +0,0 @@
|
|||||||
export * from "./span";
|
|
||||||
@ -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>
|
|
||||||
</>;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user