Skip to content

Commit 1cbbf5b

Browse files
committed
Merge branch 'frontend-remove-hide-amounts-settings'
2 parents 3cf3880 + d98aa95 commit 1cbbf5b

File tree

5 files changed

+3
-85
lines changed

5 files changed

+3
-85
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Use native scrollbars on macOS, iOS and Android
77
- Fix address signing fail on screen rotation for Pocket and Bitsurance
88
- Restrict selection to text files when importing notes
9+
- Display the hide amount button by default and remove its settings
910

1011
# 4.46.3
1112
- Fix camera access on linux

frontends/web/src/components/hideamountsbutton/hideamountsbutton.tsx

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2023-2024 Shift Crypto AG
2+
* Copyright 2023-2025 Shift Crypto AG
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,21 +16,15 @@
1616

1717
import { useContext } from 'react';
1818
import { useTranslation } from 'react-i18next';
19-
import { useLoad } from '@/hooks/api';
2019
import { AppContext } from '@/contexts/AppContext';
2120
import { Button } from '@/components/forms/button';
2221
import { EyeClosed, EyeOpened } from '@/components/icon';
23-
import { getConfig } from '@/utils/config';
2422
import styles from './hideamountsbutton.module.css';
2523

2624
export const HideAmountsButton = () => {
2725
const { t } = useTranslation();
2826
const { hideAmounts, toggleHideAmounts } = useContext(AppContext);
29-
const config = useLoad(getConfig);
3027

31-
if (!config || !config.frontend.allowHideAmounts) {
32-
return null;
33-
}
3428
return (
3529
<Button className={styles.button} onClick={toggleHideAmounts} transparent>
3630
{hideAmounts ? <EyeClosed /> : <EyeOpened />}

frontends/web/src/routes/exchange/exchange.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ export const Exchange = ({ code, accounts, deviceIDs }: TProps) => {
126126
<div className="innerContainer scrollableContainer">
127127
<Header title={<h2>{title}</h2>} />
128128
<div className={[style.exchangeContainer, 'content', 'narrow', 'isVerticallyCentered'].join(' ')}>
129-
<h1 className={style.title}>{title}</h1>
130129
<p className={style.label}>{t('buy.exchange.region')}</p>
131130
{regions.length ? (
132131
<>

frontends/web/src/routes/settings/components/appearance/hideAmountsSetting.tsx

-74
This file was deleted.

frontends/web/src/routes/settings/general.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2023-2024 Shift Crypto AG
2+
* Copyright 2023-2025 Shift Crypto AG
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,7 +24,6 @@ import { DefaultCurrencyDropdownSetting } from './components/appearance/defaultC
2424
import { DisplaySatsToggleSetting } from './components/appearance/displaySatsToggleSetting';
2525
import { LanguageDropdownSetting } from './components/appearance/languageDropdownSetting';
2626
import { ActiveCurrenciesDropdownSetting } from './components/appearance/activeCurrenciesDropdownSetting';
27-
import { HideAmountsSetting } from './components/appearance/hideAmountsSetting';
2827
import { WithSettingsTabs } from './components/tabs';
2928
import { MobileHeader } from './components/mobile-header';
3029
import { Guide } from '@/components/guide/guide';
@@ -62,7 +61,6 @@ export const General = ({ deviceIDs, hasAccounts }: TPagePropsWithSettingsTabs)
6261
<ActiveCurrenciesDropdownSetting />
6362
<DarkmodeToggleSetting />
6463
<DisplaySatsToggleSetting />
65-
<HideAmountsSetting />
6664
{ hasAccounts ? (
6765
<>
6866
<SubTitle className="m-top-default">

0 commit comments

Comments
 (0)