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