mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add observer wrapper to <MainLayoutHeader/>
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
1 parent
09bfb53205
commit
b5b4a44448
1 file changed
+3
-2
@@ -1,3 +1,4 @@
|
||||
import { observer } from "mobx-react";
|
||||
import React from "react";
|
||||
|
||||
import { clusterSettingsURL } from "../+cluster-settings";
|
||||
@@ -11,7 +12,7 @@ interface Props {
|
||||
className?: string
|
||||
}
|
||||
|
||||
export function MainLayoutHeader({ cluster, className }: Props) {
|
||||
export const MainLayoutHeader = observer(({ cluster, className }: Props) => {
|
||||
return (
|
||||
<header className={cssNames("flex gaps align-center justify-space-between", className)}>
|
||||
<span className="cluster">{cluster.name}</span>
|
||||
@@ -29,4 +30,4 @@ export function MainLayoutHeader({ cluster, className }: Props) {
|
||||
/>
|
||||
</header>
|
||||
);
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user