mirror of
https://github.com/getAlby/hub.git
synced 2026-08-13 12:33:39 +02:00
fix: delete connection copy (#621)
* fix: formatting * fix: update toast copy * fix: rename app to connection
This commit is contained in:
parent
b2e4bebc52
commit
207a8e44cb
2 changed files with 7 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue