fix top-bar extension render errors

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2021-06-14 10:14:28 +03:00
1 parent d14a3e4a6d
commit 55f35466df
3 files changed
+30 -2

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ import type React from "react";
import { BaseRegistry } from "./base-registry";
interface TopBarComponents {
Item?: React.ComponentType;
Item: React.ComponentType;
}
export interface TopBarRegistration {
+1 -1
View File
@@ -45,7 +45,7 @@ export const TopBar = observer(({ label, children, ...rest }: Props) => {
return (
<div key={index}>
{registration.components.Item}
<registration.components.Item />
</div>
);
})}