Merge pull request #5244 from victormorfin97/master

Adding close button on Support menu
This commit is contained in:
Fredrik Adelöw
2021-04-16 15:17:58 +02:00
committed by GitHub
2 changed files with 11 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core': patch
---
Adding close button on support menu
@@ -17,6 +17,7 @@
import { HelpIcon, useApp } from '@backstage/core-api';
import {
Button,
DialogActions,
List,
ListItem,
ListItemIcon,
@@ -127,6 +128,11 @@ export const SupportButton = ({ children }: PropsWithChildren<Props>) => {
{items &&
items.map((item, i) => <SupportListItem item={item} key={i} />)}
</List>
<DialogActions>
<Button color="primary" onClick={popoverCloseHandler}>
Close
</Button>
</DialogActions>
</Popover>
</Fragment>
);