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
+2 -1
View File
@@ -39,6 +39,7 @@ import {
SidebarUserSettings,
SidebarThemeToggle,
SidebarPinButton,
DefaultProviderSettings,
} from '@backstage/core';
import { NavLink } from 'react-router-dom';
import { graphiQLRouteRef } from '@backstage/plugin-graphiql';
@@ -107,7 +108,7 @@ const Root: FC<{}> = ({ children }) => (
<SidebarSpace />
<SidebarDivider />
<SidebarThemeToggle />
<SidebarUserSettings />
<SidebarUserSettings providerSettings={<DefaultProviderSettings />} />
<SidebarPinButton />
</Sidebar>
{children}