From c5c66be337aab76624629f2520c473a5c2e9cf27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sza=C5=82owski?= Date: Tue, 27 Aug 2024 13:11:57 +0200 Subject: [PATCH] fix: update storing information links --- .../CreateGovernanceActionSteps/StorageInformation.tsx | 4 +++- .../EditDRepInfoSteps/EditDRepStorageInformation.tsx | 5 +++-- .../organisms/VoteContext/VoteContextStoringInformation.tsx | 4 +++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/govtool/frontend/src/components/organisms/CreateGovernanceActionSteps/StorageInformation.tsx b/govtool/frontend/src/components/organisms/CreateGovernanceActionSteps/StorageInformation.tsx index f50e03992..0252327d0 100644 --- a/govtool/frontend/src/components/organisms/CreateGovernanceActionSteps/StorageInformation.tsx +++ b/govtool/frontend/src/components/organisms/CreateGovernanceActionSteps/StorageInformation.tsx @@ -39,7 +39,9 @@ export const StorageInformation = ({ setStep }: StorageInformationProps) => { const fileName = getValues("governance_action_type") as string; const openGuideAboutStoringInformation = () => - openInNewTab("https://docs.gov.tools/faqs/how-to-create-a-metadata-anchor"); + openInNewTab( + "https://docs.gov.tools/using-govtool/govtool-functions/storing-information-offline", + ); const isActionButtonDisabled = !watch("storingURL") || !!errors.storingURL; diff --git a/govtool/frontend/src/components/organisms/EditDRepInfoSteps/EditDRepStorageInformation.tsx b/govtool/frontend/src/components/organisms/EditDRepInfoSteps/EditDRepStorageInformation.tsx index be194840d..1102b8b72 100644 --- a/govtool/frontend/src/components/organisms/EditDRepInfoSteps/EditDRepStorageInformation.tsx +++ b/govtool/frontend/src/components/organisms/EditDRepInfoSteps/EditDRepStorageInformation.tsx @@ -34,9 +34,10 @@ export const EditDRepStorageInformation = ({ const { screenWidth } = useScreenDimension(); const fileName = getValues("givenName").replace(/\s/g, ""); - const openGuideAboutStoringInformation = () => - openInNewTab("https://docs.gov.tools/faqs/how-to-create-a-metadata-anchor"); + openInNewTab( + "https://docs.gov.tools/using-govtool/govtool-functions/storing-information-offline", + ); const isActionButtonDisabled = !watch("storingURL") || !!errors.storingURL; diff --git a/govtool/frontend/src/components/organisms/VoteContext/VoteContextStoringInformation.tsx b/govtool/frontend/src/components/organisms/VoteContext/VoteContextStoringInformation.tsx index 1d3be9421..409e8ec69 100644 --- a/govtool/frontend/src/components/organisms/VoteContext/VoteContextStoringInformation.tsx +++ b/govtool/frontend/src/components/organisms/VoteContext/VoteContextStoringInformation.tsx @@ -35,7 +35,9 @@ export const VoteContextStoringInformation = ({ } = useVoteContextForm(setSavedHash, setStep, setErrorMessage); const openGuideAboutStoringInformation = () => - openInNewTab("https://docs.gov.tools/faqs/how-to-create-a-metadata-anchor"); + openInNewTab( + "https://docs.gov.tools/using-govtool/govtool-functions/storing-information-offline", + ); const isContinueDisabled = !watch("storingURL");