Skip to content

Commit 6a47d7e

Browse files
chore(frontend): Correct URL for hideen transactions docs (#12517)
# Motivation We add a specific URL for the documentation on small transactions.
1 parent 7bb54de commit 6a47d7e

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

src/frontend/src/env/oisy.metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@
2424
"OISY_LOGGING_INTO_OISY_URL": "https://docs.oisy.com/using-oisy-wallet/how-tos/logging-into-oisy",
2525
"OISY_CREATING_A_WALLET_URL": "https://docs.oisy.com/using-oisy-wallet/how-tos/creating-a-wallet",
2626
"OISY_SCAN_URL": "https://docs.oisy.com/using-oisy-wallet/how-tos/universal-scanner",
27-
"OISY_PAY_URL": "https://docs.oisy.com/using-oisy-wallet/oisy-pay"
27+
"OISY_PAY_URL": "https://docs.oisy.com/using-oisy-wallet/oisy-pay",
28+
"OISY_HIDE_MICRO_TRANSACTIONS_DOCS_URL": "https://docs.oisy.com/introduction/oisy-keeps-you-protected#filter-for-small-transactions"
2829
}

src/frontend/src/env/schema/env-oisy-metadata.schema.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ export const OisyMetadataSchema = z.object({
2626
OISY_LOGGING_INTO_OISY_URL: z.url(),
2727
OISY_CREATING_A_WALLET_URL: z.url(),
2828
OISY_SCAN_URL: z.url(),
29-
OISY_PAY_URL: z.url()
29+
OISY_PAY_URL: z.url(),
30+
OISY_HIDE_MICRO_TRANSACTIONS_DOCS_URL: z.url()
3031
});

src/frontend/src/lib/components/settings/Settings.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import Button from '$lib/components/ui/Button.svelte';
1212
import Copy from '$lib/components/ui/Copy.svelte';
1313
import ExternalLink from '$lib/components/ui/ExternalLink.svelte';
14+
import { OISY_HIDE_MICRO_TRANSACTIONS_DOCS_URL } from '$lib/constants/oisy.constants';
1415
import {
1516
SETTINGS_ACTIVE_NETWORKS_EDIT_BUTTON,
1617
SETTINGS_ADDRESS_LABEL
@@ -136,7 +137,7 @@
136137

137138
<ExternalLink
138139
ariaLabel={$i18n.settings.text.learn_more}
139-
href="https://support.oisy.com/hc/hidden-transactions"
140+
href={OISY_HIDE_MICRO_TRANSACTIONS_DOCS_URL}
140141
iconVisible={false}>{$i18n.settings.text.learn_more}</ExternalLink
141142
>
142143
</span>

src/frontend/src/lib/constants/oisy.constants.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ export const {
2828
OISY_LOGGING_INTO_OISY_URL,
2929
OISY_CREATING_A_WALLET_URL,
3030
OISY_SCAN_URL,
31-
OISY_PAY_URL
31+
OISY_PAY_URL,
32+
OISY_HIDE_MICRO_TRANSACTIONS_DOCS_URL
3233
} = safeParse({
3334
schema: OisyMetadataSchema,
3435
value: metadata,
@@ -58,7 +59,8 @@ export const {
5859
OISY_LOGGING_INTO_OISY_URL: '',
5960
OISY_CREATING_A_WALLET_URL: '',
6061
OISY_SCAN_URL: '',
61-
OISY_PAY_URL: ''
62+
OISY_PAY_URL: '',
63+
OISY_HIDE_MICRO_TRANSACTIONS_DOCS_URL: ''
6264
}
6365
});
6466

0 commit comments

Comments
 (0)