1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Simplify code

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2022-07-05 09:07:53 +03:00
parent c550964d16
commit 95246aa1dd
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A

View File

@ -3,7 +3,6 @@
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { getInjectable } from "@ogre-tools/injectable";
import { computed } from "mobx";
import getTrayIconPathInjectable from "../../tray/menu-icon/get-tray-icon-path.injectable";
import { trayIconInjectionToken } from "../../tray/menu-icon/tray-icon-injection-token";
import updateIsReadyToBeInstalledInjectable from "../update-is-ready-to-be-installed.injectable";
@ -18,7 +17,7 @@ const updateIsReadyToBeInstalledTrayIconInjectable = getInjectable({
return {
iconPath: getTrayIconPath("update-available"),
priority: 1,
shouldBeShown: computed(() => updateIsReadyToBeInstalled.get()),
shouldBeShown: updateIsReadyToBeInstalled,
};
},