Simplify changeset and test

Signed-off-by: Ronald Tol <tol.ronald@gmail.com>
This commit is contained in:
Ronald Tol
2022-11-15 14:15:52 +01:00
committed by Roohn
parent 64a579a998
commit 108ab959f3
2 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
'@backstage/core-components': patch
---
Adds prop to SupportButton to override support config items and adds the option to show custom list items per page
Add items prop to SupportButton. This prop can be used to override the items that would otherwise be grabbed from the config.
@@ -24,9 +24,9 @@ import {
import { SupportButton } from './SupportButton';
import { configApiRef } from '@backstage/core-plugin-api';
const configApi = {
getOptionalConfig: () =>
new MockConfigApi({
const configApi = new MockConfigApi({
app: {
support: {
url: 'https://github.com',
items: [
{
@@ -35,8 +35,9 @@ const configApi = {
links: [{ title: 'Github Issues', url: '/issues' }],
},
],
}),
};
},
},
});
const SUPPORT_BUTTON_ID = 'support-button';
const POPOVER_ID = 'support-button-popover';