mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 08:47:49 +00:00
fix plugin install modal
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { ModalRoot, QuickAccessTab, Router, Spinner, staticClasses } from 'decky-frontend-lib';
|
import { ConfirmModal, QuickAccessTab, Router, Spinner, staticClasses } from 'decky-frontend-lib';
|
||||||
import { FC, useState } from 'react';
|
import { FC, useState } from 'react';
|
||||||
|
|
||||||
interface PluginInstallModalProps {
|
interface PluginInstallModalProps {
|
||||||
@@ -14,7 +14,7 @@ interface PluginInstallModalProps {
|
|||||||
const PluginInstallModal: FC<PluginInstallModalProps> = ({ artifact, version, hash, onOK, onCancel, closeModal }) => {
|
const PluginInstallModal: FC<PluginInstallModalProps> = ({ artifact, version, hash, onOK, onCancel, closeModal }) => {
|
||||||
const [loading, setLoading] = useState<boolean>(false);
|
const [loading, setLoading] = useState<boolean>(false);
|
||||||
return (
|
return (
|
||||||
<ModalRoot
|
<ConfirmModal
|
||||||
bOKDisabled={loading}
|
bOKDisabled={loading}
|
||||||
closeModal={closeModal}
|
closeModal={closeModal}
|
||||||
onOK={async () => {
|
onOK={async () => {
|
||||||
@@ -34,7 +34,7 @@ const PluginInstallModal: FC<PluginInstallModalProps> = ({ artifact, version, ha
|
|||||||
{!loading && '?'}
|
{!loading && '?'}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ModalRoot>
|
</ConfirmModal>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user