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 * 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 <div className="new_installation_prompt">