@@ -114,24 +97,21 @@ function Banner(props: IBannerProps) {
);
};
- /**
- * Renders the install section.
- */
- const renderInstall = () => {
+ const renderPluginInstallSection = () => {
const disabled = isIncompatible || isInstalled;
const defaultPlugin = types?.includes("default");
if (isInstalled) {
return (
-
- Edit configuration
+
+ Configure plugin
@@ -154,7 +134,7 @@ function Banner(props: IBannerProps) {
return (
-
+
Activate
@@ -173,10 +153,10 @@ function Banner(props: IBannerProps) {
- {renderInfo()}
- {renderInstall()}
+ {renderPluginInfoSection()}
+ {renderPluginInstallSection()}
);
}
-export default Banner;
+export default PluginBanner;
diff --git a/packages/console/src/Components/Tabs/Tabs.tsx b/packages/console/src/Components/Tabs/Tabs.tsx
index 23315ae5..90ba8205 100644
--- a/packages/console/src/Components/Tabs/Tabs.tsx
+++ b/packages/console/src/Components/Tabs/Tabs.tsx
@@ -46,6 +46,10 @@ function Tabs(props: ITabsProps) {
* Renders a single tab's title.
*/
const renderTabTitle = (tab: ITab, index: number) => {
+ if (tab.hidden) {
+ return null;
+ }
+
const selected = index === props.index;
return (