Skip to content

Commit 82f167e

Browse files
authored
feat(wallet): add get support option to wallet settings (#6839)
# Description of change Fixes #6824 ## Type of change Choose a type of change, and delete any options that are not relevant. - Bug fix (a non-breaking change which fixes an issue) - Enhancement (a non-breaking change which adds functionality) - Breaking change (fix or feature that would cause existing functionality to not work as expected) - Documentation Fix ## How the change has been tested Describe the tests that you ran to verify your changes. Make sure to provide instructions for the maintainer as well as any relevant configurations. - [ ] Basic tests (linting, compilation, formatting, unit/integration tests) - [ ] Patch-specific tests (correctness, functionality coverage) ### Infrastructure QA (only required for crates that are maintained by @iotaledger/infrastructure) - [ ] Synchronization of the indexer from genesis for a network including migration objects. - [ ] Restart of indexer synchronization locally without resetting the database. - [ ] Restart of indexer synchronization on a production-like database. - [ ] Deployment of services using Docker. - [ ] Verification of API backward compatibility. ## Change checklist Tick the boxes that are relevant to your changes, and delete any items that are not. - [ ] I have followed the contribution guidelines for this project - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have checked that new and existing unit tests pass locally with my changes ### Release Notes <!-- Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. --> - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK: - [ ] REST API:
1 parent 244edee commit 82f167e

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

apps/core/src/constants/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ export * from './coinGeckoUrl.constants';
1313
export * from './vesting.constants';
1414
export * from './errorMessages.constants';
1515
export * from './legal.constants';
16+
export * from './urls.constants';
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Copyright (c) 2025 IOTA Stiftung
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
export const DISCORD_SUPPORT_LINK = 'https://discord.iota.org/';

apps/wallet/src/ui/app/components/menu/content/WalletSettingsMenuList.tsx

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import {
2626
LockUnlocked,
2727
Logout,
2828
Expand,
29+
Exclamation,
2930
} from '@iota/apps-ui-icons';
3031
import {
3132
ButtonType,
@@ -38,7 +39,7 @@ import {
3839
ImageType,
3940
} from '@iota/apps-ui-kit';
4041
import { ampli } from '_src/shared/analytics/ampli';
41-
import { useTheme, getCustomNetwork, FAQ_LINK, ToS_LINK } from '@iota/core';
42+
import { useTheme, getCustomNetwork, FAQ_LINK, ToS_LINK, DISCORD_SUPPORT_LINK } from '@iota/core';
4243

4344
export function MenuList() {
4445
const { themePreference } = useTheme();
@@ -90,6 +91,10 @@ export function MenuList() {
9091
navigate(themeUrl);
9192
}
9293

94+
function onSupportClick() {
95+
window.open(DISCORD_SUPPORT_LINK, '_blank', 'noopener noreferrer');
96+
}
97+
9398
function onFAQClick() {
9499
window.open(FAQ_LINK, '_blank', 'noopener noreferrer');
95100
}
@@ -109,24 +114,29 @@ export function MenuList() {
109114
icon: activeAccount?.isLocked ? <LockLocked /> : <LockUnlocked />,
110115
onClick: onAutoLockClick,
111116
},
112-
{
113-
title: 'FAQ',
114-
icon: <Info />,
115-
onClick: onFAQClick,
116-
},
117117
{
118118
title: 'Themes',
119119
icon: <DarkMode />,
120120
subtitle: themeSubtitle,
121121
onClick: onThemeClick,
122122
},
123+
{
124+
title: 'Get Support',
125+
icon: <Exclamation />,
126+
onClick: onSupportClick,
127+
},
123128
{
124129
title: 'Expand View',
125130
icon: <Expand />,
126131
onClick: () =>
127132
window.open(window.location.href.split('?')[0], '_blank', 'noopener noreferrer'),
128133
hidden: !isAppPopup,
129134
},
135+
{
136+
title: 'FAQ',
137+
icon: <Info />,
138+
onClick: onFAQClick,
139+
},
130140
{
131141
title: 'Reset',
132142
icon: <Logout />,

0 commit comments

Comments
 (0)