From 7f46e50669e839bb77818c990ff17290832744ed Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Tue, 20 Apr 2021 06:48:45 +0300 Subject: [PATCH] remote notifications Signed-off-by: Jari Kolehmainen --- src/renderer/components/hotbar/hotbar-menu.tsx | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/renderer/components/hotbar/hotbar-menu.tsx b/src/renderer/components/hotbar/hotbar-menu.tsx index 64e7477a74..03d0a9d14e 100644 --- a/src/renderer/components/hotbar/hotbar-menu.tsx +++ b/src/renderer/components/hotbar/hotbar-menu.tsx @@ -2,14 +2,12 @@ import "./hotbar-menu.scss"; import "./hotbar.commands"; import React from "react"; -import { disposeOnUnmount, observer } from "mobx-react"; +import { observer } from "mobx-react"; import { HotbarIcon } from "./hotbar-icon"; import { cssNames, IClassName } from "../../utils"; import { catalogEntityRegistry } from "../../api/catalog-entity-registry"; import { hotbarStore } from "../../../common/hotbar-store"; import { catalogEntityRunContext } from "../../api/catalog-entity"; -import { reaction } from "mobx"; -import { Notifications } from "../notifications"; import { Icon } from "../icon"; import { Badge } from "../badge"; import { CommandOverlay } from "../command-palette"; @@ -21,18 +19,6 @@ interface Props { @observer export class HotbarMenu extends React.Component { - - componentDidMount() { - disposeOnUnmount(this, [ - reaction(() => hotbarStore.activeHotbarId, () => { - Notifications.info(`Hotbar "${hotbarStore.getActive().name}" is now active.`, { - id: "active-hotbar", - timeout: 5_000 - }); - }) - ]); - } - get hotbarItems() { const hotbar = hotbarStore.getActive();