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

Cleaning up

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-12-03 06:14:51 +03:00
parent aa4a565911
commit 3673edfe61
2 changed files with 7 additions and 2 deletions

View File

@ -26,6 +26,11 @@ import { BaseRegistry } from "./base-registry";
interface StatusBarComponents {
Item?: React.ComponentType;
/**
* The side of the bottom bar to place this component.
*
* @default "right"
*/
position?: "left" | "right";
}

View File

@ -59,8 +59,8 @@ export class BottomBar extends React.Component {
return (
<div
className={cssNames(styles.item, {
[styles.onLeft]: registration.components?.position == "left",
[styles.onRight]: registration.components?.position != "left",
[styles.onLeft]: registration.components.position == "left",
[styles.onRight]: registration.components.position != "left",
})}
key={index}
>