From b8453d7cfdcd77e4bf5b49738a87f098800bcc3a Mon Sep 17 00:00:00 2001 From: Rosie Val Date: Sat, 8 Aug 2026 21:30:35 -0400 Subject: [PATCH] Use repo removal confirmation when deleting repositories --- .../screens/RevengePluginsAdvancedSettingScreen.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/start/settings.plugins/screens/RevengePluginsAdvancedSettingScreen.tsx b/src/plugins/start/settings.plugins/screens/RevengePluginsAdvancedSettingScreen.tsx index b585676..3313580 100644 --- a/src/plugins/start/settings.plugins/screens/RevengePluginsAdvancedSettingScreen.tsx +++ b/src/plugins/start/settings.plugins/screens/RevengePluginsAdvancedSettingScreen.tsx @@ -22,6 +22,7 @@ import { ScrollView, View } from 'react-native' import { api } from '..' import { toConfig } from '../repos' import { formatBytes, messageOf, showErrorToast } from '../utils/repos' +import { showRemoveRepoConfirmation } from '../utils/alerts' import type { DownloadProgressEvent, Repo, @@ -101,7 +102,7 @@ function UserRepoRow({ label: 'Delete', IconComponent: TrashIconComponent, variant: 'destructive' as const, - action: () => onRemove(repo), + action: () => showRemoveRepoConfirmation(repo, () => onRemove(repo)), }, ], ] @@ -212,7 +213,6 @@ export default function RevengePluginsAdvancedSettingScreen() { const removeRepo = useCallback( async (repo: Repo) => { - // TODO: Add warning for default repo removal, user can clear "Plugin Settings" data to restore the default repo await commit(toConfig(userRepos.filter(r => r.url !== repo.url)))