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:
1 parent
125957ac85
commit
93008aed94
2 files changed
-21
No files matched your search
@@ -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>
|
|
||||||
</>;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user