fix: delete connection copy (#621)

* fix: formatting

* fix: update toast copy

* fix: rename app to connection
This commit is contained in:
René Aaron 2024-09-06 10:19:52 +02:00 committed by GitHub
parent b2e4bebc52
commit 207a8e44cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 6 deletions

View file

@ -18,12 +18,12 @@ export function useDeleteApp(onSuccess?: (nostrPubkey: string) => void) {
"Content-Type": "application/json",
},
});
toast({ title: "App disconnected" });
toast({ title: "Connection deleted" });
if (onSuccess) {
onSuccess(nostrPubkey);
}
} catch (error) {
await handleRequestError(toast, "Failed to delete app", error);
await handleRequestError(toast, "Failed to delete connection", error);
} finally {
setDeleting(false);
}

View file

@ -196,11 +196,12 @@ function AppInternal({ app, refetchApp, capabilities }: AppInternalProps) {
<AlertDialogDescription>
Connected apps will no longer be able to use this
connection.
{app.isolated && app.balance > 0 && (
<div>
No funds will be lost during this process. The balance
{app.isolated && (
<>
{" "}
No funds will be lost during this process, the balance
will remain in your wallet.
</div>
</>
)}
</AlertDialogDescription>
</AlertDialogHeader>