mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-09 03:32:54 -05:00
Hide Y axis values of net worth graph when privacy mode i… (#2594)
This commit is contained in:
committed by
GitHub
parent
36c700d92d
commit
9aeab0ff5b
@@ -12,6 +12,7 @@ import {
|
||||
ResponsiveContainer,
|
||||
} from 'recharts';
|
||||
|
||||
import { usePrivacyMode } from '../../../hooks/usePrivacyMode';
|
||||
import { theme } from '../../../style';
|
||||
import { type CSSProperties } from '../../../style';
|
||||
import { AlignedText } from '../../common/AlignedText';
|
||||
@@ -29,8 +30,10 @@ export function NetWorthGraph({
|
||||
graphData,
|
||||
compact,
|
||||
}: NetWorthGraphProps) {
|
||||
const privacyMode = usePrivacyMode();
|
||||
|
||||
const tickFormatter = tick => {
|
||||
return `${Math.round(tick).toLocaleString()}`; // Formats the tick values as strings with commas
|
||||
return privacyMode ? '...' : `${Math.round(tick).toLocaleString()}`; // Formats the tick values as strings with commas
|
||||
};
|
||||
|
||||
const gradientOffset = () => {
|
||||
|
||||
6
upcoming-release-notes/2594.md
Normal file
6
upcoming-release-notes/2594.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [ttlgeek]
|
||||
---
|
||||
|
||||
Hide Y axis values of net worth graph when privacy mode is enabled.
|
||||
Reference in New Issue
Block a user