refactor(core): change SidebarUserSettings to accept a list of providerSettings

This allows to configure custom provider settings without the need to modify the core package.
This commit is contained in:
Oliver Sand
2020-08-20 15:53:28 +02:00
parent 70ccbd304c
commit a7fdb17356
6 changed files with 107 additions and 66 deletions
@@ -9,6 +9,7 @@ import {
SidebarUserSettings,
SidebarThemeToggle,
SidebarPinButton,
DefaultProviderSettings,
} from '@backstage/core';
export const AppSidebar = () => (
@@ -22,7 +23,7 @@ export const AppSidebar = () => (
<SidebarSpace />
<SidebarDivider />
<SidebarThemeToggle />
<SidebarUserSettings />
<SidebarUserSettings providerSettings={<DefaultProviderSettings />} />
<SidebarPinButton />
</Sidebar>
);