mirror of
https://github.com/ragestudio/relic.git
synced 2025-06-09 10:34:18 +00:00
use app.invokeInstall
This commit is contained in:
parent
25df0cf352
commit
6dae178bc5
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user