X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/bfaee40696c3c15556ef089e69da47bb832b08db..c6aa0eb37e4d05b2a81f1528222dac32e0501db5:/services/workbench2/src/views-components/main-app-bar/notifications-menu.tsx
diff --git a/services/workbench2/src/views-components/main-app-bar/notifications-menu.tsx b/services/workbench2/src/views-components/main-app-bar/notifications-menu.tsx
index ca97a612bb..631d3162eb 100644
--- a/services/workbench2/src/views-components/main-app-bar/notifications-menu.tsx
+++ b/services/workbench2/src/views-components/main-app-bar/notifications-menu.tsx
@@ -26,11 +26,11 @@ const mapDispatchToProps = (dispatch: Dispatch) => ({
type NotificationsMenuProps = {
isOpen: boolean;
bannerUUID?: string;
-}
+};
type NotificationsMenuComponentProps = NotificationsMenuProps & {
openBanner: any;
-}
+};
export const NotificationsMenuComponent = (props: NotificationsMenuComponentProps) => {
const { isOpen, openBanner } = props;
@@ -39,41 +39,58 @@ export const NotificationsMenuComponent = (props: NotificationsMenuComponentProp
const menuItems: any[] = [];
if (!isOpen && bannerResult) {
- menuItems.push();
+ menuItems.push(
+
+ );
}
const toggleTooltips = useCallback(() => {
if (tooltipResult) {
localStorage.removeItem(TOOLTIP_LOCAL_STORAGE_KEY);
} else {
- localStorage.setItem(TOOLTIP_LOCAL_STORAGE_KEY, 'true');
+ localStorage.setItem(TOOLTIP_LOCAL_STORAGE_KEY, "true");
}
window.location.reload();
}, [tooltipResult]);
if (tooltipResult) {
- menuItems.push();
+ menuItems.push(
+
+ );
} else {
- menuItems.push();
+ menuItems.push(
+
+ );
}
if (menuItems.length === 0) {
menuItems.push();
}
- return (
-
- }
- id="account-menu"
- title="Notifications">
- {
- menuItems.map((item, i) => {item}
)
- }
- );
-}
+ return (
+
+
+
+ }
+ id="account-menu"
+ title="Notifications"
+ >
+ {menuItems.map((item, i) => (
+ {item}
+ ))}
+
+ );
+};
export const NotificationsMenu = connect(mapStateToProps, mapDispatchToProps)(NotificationsMenuComponent);