diff --git a/src/components/TransactionChart.tsx b/src/components/TransactionChart.tsx index 236ed20..b153f9b 100644 --- a/src/components/TransactionChart.tsx +++ b/src/components/TransactionChart.tsx @@ -180,7 +180,7 @@ const TransactionChart: React.FC = ({ }; const renderChart = () => { - if (type === 'overview' || type === 'total-revenue' || type === 'total-profit') { + if (type === 'total-revenue') { return ( @@ -192,28 +192,102 @@ const TransactionChart: React.FC = ({ contentStyle={{ backgroundColor: '#1F2937', border: '1px solid #374151' }} /> - {(type === 'overview' || type === 'total-revenue') && ( - - )} - {(type === 'overview' || type === 'total-profit') && ( - - )} + + + + ); + } + + if (type === 'total-profit') { + return ( + + + + + + + + + + ); + } + + if (type === 'overview') { + return ( + + + + + + + + + + ); }