diff --git a/src/renderer/src/components/ManifestInfo/index.less b/src/renderer/src/components/ManifestInfo/index.less index 235134b..c5a4f93 100644 --- a/src/renderer/src/components/ManifestInfo/index.less +++ b/src/renderer/src/components/ManifestInfo/index.less @@ -15,6 +15,9 @@ .manifest_info-icon { width: 80px; height: 80px; + min-width: 80px; + min-height: 80px; + max-height: 80px; border-radius: 12px; diff --git a/src/renderer/src/components/NewInstallation/index.jsx b/src/renderer/src/components/NewInstallation/index.jsx new file mode 100644 index 0000000..e46c897 --- /dev/null +++ b/src/renderer/src/components/NewInstallation/index.jsx @@ -0,0 +1,36 @@ +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() + } + + return
+ { + renderStatusLine(manifest) + } +
+{manifest.statusText ?? "Unknown status"}
+- { - renderStatusLine(manifest) - } -
-{manifest.statusText ?? "Unknown status"}
-