From 1aa75a6eee63a716c9652765b633f246f7f7e03d Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Tue, 13 Sep 2022 11:31:07 +0300 Subject: [PATCH] Fix navigateToWelcomePage type Signed-off-by: Alex Andreev --- src/renderer/components/layout/top-bar/top-bar.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/renderer/components/layout/top-bar/top-bar.tsx b/src/renderer/components/layout/top-bar/top-bar.tsx index 090f6cfe0f..5c5a037ccd 100644 --- a/src/renderer/components/layout/top-bar/top-bar.tsx +++ b/src/renderer/components/layout/top-bar/top-bar.tsx @@ -14,7 +14,6 @@ import { withInjectables } from "@ogre-tools/injectable-react"; import type { TopBarRegistration } from "./top-bar-registration"; import isLinuxInjectable from "../../../../common/vars/is-linux.injectable"; import isWindowsInjectable from "../../../../common/vars/is-windows.injectable"; -import type { NavigateToCatalog } from "../../../../common/front-end-routing/routes/catalog/navigate-to-catalog.injectable"; import routeIsActiveInjectable from "../../../routes/route-is-active.injectable"; import { UpdateButton } from "../../update-button"; import topBarPrevEnabledInjectable from "./prev-enabled.injectable"; @@ -30,7 +29,7 @@ import welcomeRouteInjectable from "../../../../common/front-end-routing/routes/ import navigateToWelcomeInjectable from "../../../../common/front-end-routing/routes/welcome/navigate-to-welcome.injectable"; interface Dependencies { - navigateToWelcomePage: NavigateToCatalog; + navigateToWelcomePage: () => void; welcomeRouteIsActive: IComputedValue; items: IComputedValue; isWindows: boolean;