mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Make CatalogEntity labels clickable (#3075)
- Transition workspace's to be labels - Fix migrations to support multiple migrations for the same version Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
d812e28639
commit
7f51e3addd
30 files changed
+268
-120
No files matched your search
@@ -36,4 +36,8 @@
|
||||
&.small {
|
||||
font-size: $font-size-small;
|
||||
}
|
||||
}
|
||||
|
||||
&.clickable {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
@@ -35,9 +35,10 @@ export interface BadgeProps extends React.HTMLAttributes<any>, TooltipDecoratorP
|
||||
export class Badge extends React.Component<BadgeProps> {
|
||||
render() {
|
||||
const { className, label, small, flat, children, ...elemProps } = this.props;
|
||||
const clickable = Boolean(this.props.onClick);
|
||||
|
||||
return <>
|
||||
<span className={cssNames("Badge", { small, flat }, className)} {...elemProps}>
|
||||
<span className={cssNames("Badge", { small, flat, clickable }, className)} {...elemProps}>
|
||||
{label}
|
||||
{children}
|
||||
</span>
|
||||
|
||||
Reference in new issue
Block a user