mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix linter
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
83a8a3fb1b
commit
6a789380de
@ -11,8 +11,8 @@ import { statusBarItemInjectionToken } from "./status-bar-item-injection-token";
|
|||||||
import { computedInjectManyInjectable } from "@ogre-tools/injectable-extension-for-mobx";
|
import { computedInjectManyInjectable } from "@ogre-tools/injectable-extension-for-mobx";
|
||||||
|
|
||||||
interface StatusItem {
|
interface StatusItem {
|
||||||
id?: string,
|
id?: string;
|
||||||
component: React.ComponentType<StatusBarItemProps>
|
component: React.ComponentType<StatusBarItemProps>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface StatusBarItems {
|
export interface StatusBarItems {
|
||||||
@ -40,7 +40,7 @@ function getStatusBarItems({ registrations }: Dependencies): IComputedValue<Stat
|
|||||||
|
|
||||||
res[position].push({
|
res[position].push({
|
||||||
id,
|
id,
|
||||||
component
|
component,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -25,14 +25,20 @@ const NonInjectedStatusBar = observer(({ items }: Dependencies & StatusBarProps)
|
|||||||
<div className={styles.StatusBar} data-testid="status-bar">
|
<div className={styles.StatusBar} data-testid="status-bar">
|
||||||
<div className={styles.leftSide} data-testid="status-bar-left">
|
<div className={styles.leftSide} data-testid="status-bar-left">
|
||||||
{left.map((Item, index) => (
|
{left.map((Item, index) => (
|
||||||
<div className={styles.item} key={index} data-origin={Item.id}>
|
<div
|
||||||
|
className={styles.item}
|
||||||
|
key={index}
|
||||||
|
data-origin={Item.id}>
|
||||||
{<Item.component/>}
|
{<Item.component/>}
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.rightSide} data-testid="status-bar-right">
|
<div className={styles.rightSide} data-testid="status-bar-right">
|
||||||
{right.map((Item, index) => (
|
{right.map((Item, index) => (
|
||||||
<div className={styles.item} key={index} data-origin={Item.id}>
|
<div
|
||||||
|
className={styles.item}
|
||||||
|
key={index}
|
||||||
|
data-origin={Item.id}>
|
||||||
{<Item.component/>}
|
{<Item.component/>}
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user