diff --git a/frontend/src/lib/components/common/CalloutWarning.svelte b/frontend/src/lib/components/common/CalloutWarning.svelte index 1b3f67f9d4..a9a7e7ef8b 100644 --- a/frontend/src/lib/components/common/CalloutWarning.svelte +++ b/frontend/src/lib/components/common/CalloutWarning.svelte @@ -2,6 +2,7 @@ import { Html, IconError } from "@dfinity/gix-components"; export let htmlText: string; + // TODO(mstr): Use Banner component here instead of custom styling.
diff --git a/frontend/src/lib/components/neurons/AddUserToHotkeys.svelte b/frontend/src/lib/components/neurons/AddUserToHotkeys.svelte index f6dc86562b..92d224c64c 100644 --- a/frontend/src/lib/components/neurons/AddUserToHotkeys.svelte +++ b/frontend/src/lib/components/neurons/AddUserToHotkeys.svelte @@ -6,6 +6,7 @@ import { busy } from "@dfinity/gix-components"; import type { NeuronId } from "@dfinity/nns"; import { createEventDispatcher } from "svelte"; + import CalloutWarning from "$lib/components/common/CalloutWarning.svelte"; export let account: Account; export let neuronId: NeuronId; @@ -30,6 +31,8 @@
+ +

{$i18n.neurons.add_user_as_hotkey_message}

diff --git a/frontend/src/lib/i18n/en.json b/frontend/src/lib/i18n/en.json index 1b80d5753b..b21df7ba6c 100644 --- a/frontend/src/lib/i18n/en.json +++ b/frontend/src/lib/i18n/en.json @@ -395,6 +395,7 @@ "confirming": "Confirming following. This may take a moment.", "confirm": "Confirm Following", "badge_label": "Confirm following to avoid missing rewards", + "hw_create_neuron_warning": "It is recommended to Add Hotkey now, otherwise the NNS dapp will not be able to warn you if this neuron starts missing voting rewards due to inactivity.", "hw_hotkey_warning": "You may have neurons that are not added to the NNS dapp. If you want to view your neurons and get alerts in case they start missing voting rewards, you can add them by clicking Show Neurons > Add to NNS Dapp." }, "losing_rewards_banner": { diff --git a/frontend/src/lib/types/i18n.d.ts b/frontend/src/lib/types/i18n.d.ts index 36b85d472b..0335bd88e9 100644 --- a/frontend/src/lib/types/i18n.d.ts +++ b/frontend/src/lib/types/i18n.d.ts @@ -409,6 +409,7 @@ interface I18nLosing_rewards { confirming: string; confirm: string; badge_label: string; + hw_create_neuron_warning: string; hw_hotkey_warning: string; }