From 6dae178bc536dc72806528494086a9c03abfe546 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Mon, 25 Mar 2024 09:27:56 +0100 Subject: [PATCH] use `app.invokeInstall` --- src/renderer/src/components/NewInstallation/index.jsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/renderer/src/components/NewInstallation/index.jsx b/src/renderer/src/components/NewInstallation/index.jsx index e46c897..34c2e44 100644 --- a/src/renderer/src/components/NewInstallation/index.jsx +++ b/src/renderer/src/components/NewInstallation/index.jsx @@ -1,17 +1,13 @@ import React from "react" import * as antd from "antd" -import { Context as InstallationsContext } from "contexts/installations" - import "./index.less" const NewInstallation = (props) => { - const { install } = React.useContext(InstallationsContext) const [manifestUrl, setManifestUrl] = React.useState("") function handleClickInstall() { - install(manifestUrl) - props.close() + app.invokeInstall(manifestUrl) } return