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 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">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user