Adding close button to Support menu

Signed-off-by: Victor Morfin <v-vmorfin@expediagroup.com>
This commit is contained in:
Victor Morfin
2021-04-07 13:16:36 -06:00
parent faeda51867
commit cc9132f8c3
@@ -16,6 +16,7 @@
import { HelpIcon, useApp } from '@backstage/core-api';
import {
Box,
Button,
List,
ListItem,
@@ -127,6 +128,11 @@ export const SupportButton = ({ children }: PropsWithChildren<Props>) => {
{items &&
items.map((item, i) => <SupportListItem item={item} key={i} />)}
</List>
<Box display="flex" justifyContent="flex-end">
<Button color="primary" onClick={popoverCloseHandler}>
Close
</Button>
</Box>
</Popover>
</Fragment>
);