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";
|
||||
|
||||
interface StatusItem {
|
||||
id?: string,
|
||||
component: React.ComponentType<StatusBarItemProps>
|
||||
id?: string;
|
||||
component: React.ComponentType<StatusBarItemProps>;
|
||||
}
|
||||
|
||||
export interface StatusBarItems {
|
||||
@ -40,7 +40,7 @@ function getStatusBarItems({ registrations }: Dependencies): IComputedValue<Stat
|
||||
|
||||
res[position].push({
|
||||
id,
|
||||
component
|
||||
component,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -25,14 +25,20 @@ const NonInjectedStatusBar = observer(({ items }: Dependencies & StatusBarProps)
|
||||
<div className={styles.StatusBar} data-testid="status-bar">
|
||||
<div className={styles.leftSide} data-testid="status-bar-left">
|
||||
{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/>}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
<div className={styles.rightSide} data-testid="status-bar-right">
|
||||
{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/>}
|
||||
</div>
|
||||
))}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user