From ad40295b7540ad09e52d12257eb8c18fd2e3ffd1 Mon Sep 17 00:00:00 2001 From: Joel Date: Fri, 27 Jun 2025 19:05:12 +0800 Subject: [PATCH] feat: handle downgrade install --- .../update-plugin/downgrade-warning-modal.tsx | 37 ------------------- 1 file changed, 37 deletions(-) delete mode 100644 web/app/components/plugins/update-plugin/downgrade-warning-modal.tsx diff --git a/web/app/components/plugins/update-plugin/downgrade-warning-modal.tsx b/web/app/components/plugins/update-plugin/downgrade-warning-modal.tsx deleted file mode 100644 index fa5e90d182..0000000000 --- a/web/app/components/plugins/update-plugin/downgrade-warning-modal.tsx +++ /dev/null @@ -1,37 +0,0 @@ -import { useTranslation } from 'react-i18next' -import Modal from '@/app/components/base/modal' -import Button from '@/app/components/base/button' - -type Props = { - onCancel: () => void - onSave: () => void - confirmDisabled?: boolean -} -const DowngradeWarningModal = ({ - onCancel, - onSave, - confirmDisabled = false, -}: Props) => { - const { t } = useTranslation() - - return ( - onCancel()} - className='w-[480px]' - > -
-
Plugin Downgrade
-
- Auto-update is currently enabled for this plugin. Downgrading the version may cause your changes to be overwritten during the next automatic update. -
-
-
- - -
-
- ) -} - -export default DowngradeWarningModal