← All changes
|
resources/js/components/charts/BookingsOverviewChart.tsx
+3
-1
3.0.2.7
→
3.0.17
View file →
| @@ -8,8 +8,9 @@ | ||
| 8 | 8 | ResponsiveContainer, |
| 9 | 9 | CartesianGrid, |
| 10 | 10 | Legend, |
| 11 | 11 | } from "recharts"; |
| 12 | +import { normalizeCurrencyPosition } from "../../lib/currency-display"; | |
| 12 | 13 | |
| 13 | 14 | export interface BookingsOverviewPoint { |
| 14 | 15 | label: string; |
| 15 | 16 | count: number; |
| @@ -54,10 +55,11 @@ | ||
| 54 | 55 | }; |
| 55 | 56 | |
| 56 | 57 | const useK = compact; |
| 57 | 58 | const core = formatCore(v, useK); |
| 59 | + const mode = normalizeCurrencyPosition(currencyPosition); | |
| 58 | 60 | |
| 59 | - switch (currencyPosition) { | |
| 61 | + switch (mode) { | |
| 60 | 62 | case "right": |
| 61 | 63 | return `${core}${symbol}`; |
| 62 | 64 | case "left_space": |
| 63 | 65 | return `${symbol} ${core}`; |