From 2d1b513c30f847217048c952ca6ba52eee80a20f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8r=E2=88=82=C2=A1?= Date: Fri, 2 Aug 2024 13:14:30 +0200 Subject: [PATCH] Minor copy improvement --- hooks/usePermit.ts | 4 ++-- plugins/emergency-multisig/hooks/useCreateProposal.ts | 4 ++-- plugins/emergency-multisig/hooks/useProposalApprove.tsx | 4 ++-- plugins/emergency-multisig/hooks/useProposalExecute.tsx | 4 ++-- plugins/emergency-multisig/hooks/usePublicKeyRegistry.ts | 4 ++-- plugins/members/hooks/useAnnounceDelegation.tsx | 4 ++-- plugins/members/hooks/useDelegateVotingPower.ts | 4 ++-- plugins/multisig/hooks/useCreateProposal.ts | 4 ++-- plugins/multisig/hooks/useProposalApprove.tsx | 4 ++-- plugins/multisig/hooks/useProposalExecute.tsx | 4 ++-- plugins/optimistic-proposals/hooks/useProposalExecute.tsx | 4 ++-- plugins/optimistic-proposals/hooks/useProposalVeto.tsx | 4 ++-- 12 files changed, 24 insertions(+), 24 deletions(-) diff --git a/hooks/usePermit.ts b/hooks/usePermit.ts index 20b7749..0bc3554 100644 --- a/hooks/usePermit.ts +++ b/hooks/usePermit.ts @@ -41,8 +41,8 @@ export function usePermit() { return; case "error": if (permitSignError?.message?.startsWith("User rejected the request")) { - addAlert("The signature was declined", { - description: "Nothing has been sent to the network", + addAlert("The transaction signature was declined", { + description: "Nothing will be sent to the network", timeout: 4 * 1000, }); } else { diff --git a/plugins/emergency-multisig/hooks/useCreateProposal.ts b/plugins/emergency-multisig/hooks/useCreateProposal.ts index b4e2d1a..bdd8d17 100644 --- a/plugins/emergency-multisig/hooks/useCreateProposal.ts +++ b/plugins/emergency-multisig/hooks/useCreateProposal.ts @@ -37,8 +37,8 @@ export function useCreateProposal() { if (status === "idle" || status === "pending") return; else if (status === "error") { if (error?.message?.startsWith("User rejected the request")) { - addAlert("The signature was declined", { - description: "Nothing has been sent to the network", + addAlert("The transaction signature was declined", { + description: "Nothing will be sent to the network", timeout: 4 * 1000, }); } else { diff --git a/plugins/emergency-multisig/hooks/useProposalApprove.tsx b/plugins/emergency-multisig/hooks/useProposalApprove.tsx index 1c7a71c..633c05e 100644 --- a/plugins/emergency-multisig/hooks/useProposalApprove.tsx +++ b/plugins/emergency-multisig/hooks/useProposalApprove.tsx @@ -29,8 +29,8 @@ export function useProposalApprove(proposalId: string) { if (approveStatus === "idle" || approveStatus === "pending") return; else if (approveStatus === "error") { if (approveError?.message?.startsWith("User rejected the request")) { - addAlert("The signature was declined", { - description: "Nothing has been sent to the network", + addAlert("The transaction signature was declined", { + description: "Nothing will be sent to the network", timeout: 4 * 1000, }); } else { diff --git a/plugins/emergency-multisig/hooks/useProposalExecute.tsx b/plugins/emergency-multisig/hooks/useProposalExecute.tsx index fe0fbe6..5eb8b4c 100644 --- a/plugins/emergency-multisig/hooks/useProposalExecute.tsx +++ b/plugins/emergency-multisig/hooks/useProposalExecute.tsx @@ -74,8 +74,8 @@ export function useProposalExecute(proposalId: string) { if (executingStatus === "idle" || executingStatus === "pending") return; else if (executingStatus === "error") { if (executingError?.message?.startsWith("User rejected the request")) { - addAlert("The signature was declined", { - description: "Nothing has been sent to the network", + addAlert("The transaction signature was declined", { + description: "Nothing will be sent to the network", timeout: 4 * 1000, }); } else { diff --git a/plugins/emergency-multisig/hooks/usePublicKeyRegistry.ts b/plugins/emergency-multisig/hooks/usePublicKeyRegistry.ts index 46ba34b..412153a 100644 --- a/plugins/emergency-multisig/hooks/usePublicKeyRegistry.ts +++ b/plugins/emergency-multisig/hooks/usePublicKeyRegistry.ts @@ -76,8 +76,8 @@ export function usePublicKeyRegistry() { debounce(() => refetch(), 800); if (error?.message?.startsWith("User rejected the request")) { - addAlert("The signature was declined", { - description: "Nothing has been sent to the network", + addAlert("The transaction signature was declined", { + description: "Nothing will be sent to the network", timeout: 4 * 1000, }); } else { diff --git a/plugins/members/hooks/useAnnounceDelegation.tsx b/plugins/members/hooks/useAnnounceDelegation.tsx index c980264..9798aed 100644 --- a/plugins/members/hooks/useAnnounceDelegation.tsx +++ b/plugins/members/hooks/useAnnounceDelegation.tsx @@ -18,8 +18,8 @@ export function useAnnounceDelegation(onSuccess?: () => void) { if (status === "idle" || status === "pending") return; else if (status === "error") { if (error?.message?.startsWith("User rejected the request")) { - addAlert("The signature was declined", { - description: "Nothing has been sent to the network", + addAlert("The transaction signature was declined", { + description: "Nothing will be sent to the network", timeout: 4 * 1000, }); } else { diff --git a/plugins/members/hooks/useDelegateVotingPower.ts b/plugins/members/hooks/useDelegateVotingPower.ts index aade23a..7dc03a7 100644 --- a/plugins/members/hooks/useDelegateVotingPower.ts +++ b/plugins/members/hooks/useDelegateVotingPower.ts @@ -16,8 +16,8 @@ export const useDelegateVotingPower = (targetAddress: Address, onSuccess?: () => if (status === "idle" || status === "pending") return; else if (status === "error") { if (error?.message?.startsWith("User rejected the request")) { - addAlert("The signature was declined", { - description: "Nothing has been sent to the network", + addAlert("The transaction signature was declined", { + description: "Nothing will be sent to the network", timeout: 4 * 1000, }); } else { diff --git a/plugins/multisig/hooks/useCreateProposal.ts b/plugins/multisig/hooks/useCreateProposal.ts index 1664f53..48a1f8f 100644 --- a/plugins/multisig/hooks/useCreateProposal.ts +++ b/plugins/multisig/hooks/useCreateProposal.ts @@ -35,8 +35,8 @@ export function useCreateProposal() { if (status === "idle" || status === "pending") return; else if (status === "error") { if (error?.message?.startsWith("User rejected the request")) { - addAlert("The signature was declined", { - description: "Nothing has been sent to the network", + addAlert("The transaction signature was declined", { + description: "Nothing will be sent to the network", timeout: 4 * 1000, }); } else { diff --git a/plugins/multisig/hooks/useProposalApprove.tsx b/plugins/multisig/hooks/useProposalApprove.tsx index d56bd63..3536b70 100644 --- a/plugins/multisig/hooks/useProposalApprove.tsx +++ b/plugins/multisig/hooks/useProposalApprove.tsx @@ -29,8 +29,8 @@ export function useProposalApprove(proposalId: string) { if (approveStatus === "idle" || approveStatus === "pending") return; else if (approveStatus === "error") { if (approveError?.message?.startsWith("User rejected the request")) { - addAlert("The signature was declined", { - description: "Nothing has been sent to the network", + addAlert("The transaction signature was declined", { + description: "Nothing will be sent to the network", timeout: 4 * 1000, }); } else { diff --git a/plugins/multisig/hooks/useProposalExecute.tsx b/plugins/multisig/hooks/useProposalExecute.tsx index a2069b5..9fef98d 100644 --- a/plugins/multisig/hooks/useProposalExecute.tsx +++ b/plugins/multisig/hooks/useProposalExecute.tsx @@ -47,8 +47,8 @@ export function useProposalExecute(proposalId: string) { if (executingStatus === "idle" || executingStatus === "pending") return; else if (executingStatus === "error") { if (executingError?.message?.startsWith("User rejected the request")) { - addAlert("The signature was declined", { - description: "Nothing has been sent to the network", + addAlert("The transaction signature was declined", { + description: "Nothing will be sent to the network", timeout: 4 * 1000, }); } else { diff --git a/plugins/optimistic-proposals/hooks/useProposalExecute.tsx b/plugins/optimistic-proposals/hooks/useProposalExecute.tsx index 41f2c4a..782fe45 100644 --- a/plugins/optimistic-proposals/hooks/useProposalExecute.tsx +++ b/plugins/optimistic-proposals/hooks/useProposalExecute.tsx @@ -50,8 +50,8 @@ export function useProposalExecute(index: number) { if (executingStatus === "idle" || executingStatus === "pending") return; else if (executingStatus === "error") { if (executingError?.message?.startsWith("User rejected the request")) { - addAlert("The signature was declined", { - description: "Nothing has been sent to the network", + addAlert("The transaction signature was declined", { + description: "Nothing will be sent to the network", timeout: 4 * 1000, }); } else { diff --git a/plugins/optimistic-proposals/hooks/useProposalVeto.tsx b/plugins/optimistic-proposals/hooks/useProposalVeto.tsx index aebf2e9..e34fa2f 100644 --- a/plugins/optimistic-proposals/hooks/useProposalVeto.tsx +++ b/plugins/optimistic-proposals/hooks/useProposalVeto.tsx @@ -23,8 +23,8 @@ export function useProposalVeto(index: number) { if (vetoingStatus === "idle" || vetoingStatus === "pending") return; else if (vetoingStatus === "error") { if (vetoingError?.message?.startsWith("User rejected the request")) { - addAlert("The signature was declined", { - description: "Nothing has been sent to the network", + addAlert("The transaction signature was declined", { + description: "Nothing will be sent to the network", timeout: 4 * 1000, }); } else {