use app.invokeInstall

This commit is contained in:
SrGooglo 2024-03-25 09:27:56 +01:00
parent 25df0cf352
commit 6dae178bc5

View File

@ -1,17 +1,13 @@
import React from "react" import React from "react"
import * as antd from "antd" import * as antd from "antd"
import { Context as InstallationsContext } from "contexts/installations"
import "./index.less" import "./index.less"
const NewInstallation = (props) => { const NewInstallation = (props) => {
const { install } = React.useContext(InstallationsContext)
const [manifestUrl, setManifestUrl] = React.useState("") const [manifestUrl, setManifestUrl] = React.useState("")
function handleClickInstall() { function handleClickInstall() {
install(manifestUrl) app.invokeInstall(manifestUrl)
props.close()
} }
return <div className="new_installation_prompt"> return <div className="new_installation_prompt">