Skip to content

Commit 614903b

Browse files
committed
feat: comment out stat value displays in Dashboard for cleaner UI
1 parent 1dc255c commit 614903b

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

web/default/src/pages/Dashboard/index.js

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
1-
import React, { useEffect, useState } from 'react';
2-
import { useTranslation } from 'react-i18next';
3-
import { Card, Grid, Header, Segment, Statistic } from 'semantic-ui-react';
4-
import { API, showError } from '../../helpers';
5-
import moment from 'moment';
1+
import React, {useEffect, useState} from 'react';
2+
import {useTranslation} from 'react-i18next';
3+
import {Card, Grid} from 'semantic-ui-react';
64
import {
7-
LineChart,
5+
Bar,
6+
BarChart,
7+
CartesianGrid,
8+
Legend,
89
Line,
10+
LineChart,
11+
ResponsiveContainer,
12+
Tooltip,
913
XAxis,
1014
YAxis,
11-
CartesianGrid,
12-
Tooltip,
13-
ResponsiveContainer,
14-
BarChart,
15-
Bar,
16-
Legend,
1715
} from 'recharts';
1816
import axios from 'axios';
1917
import './Dashboard.css';
@@ -244,7 +242,7 @@ const Dashboard = () => {
244242
<Card.Content>
245243
<Card.Header>
246244
{t('dashboard.charts.requests.title')}
247-
<span className='stat-value'>{summaryData.todayRequests}</span>
245+
{/* <span className='stat-value'>{summaryData.todayRequests}</span> */}
248246
</Card.Header>
249247
<div className='chart-container'>
250248
<ResponsiveContainer
@@ -296,9 +294,9 @@ const Dashboard = () => {
296294
<Card.Content>
297295
<Card.Header>
298296
{t('dashboard.charts.quota.title')}
299-
<span className='stat-value'>
297+
{/* <span className='stat-value'>
300298
${summaryData.todayQuota.toFixed(3)}
301-
</span>
299+
</span> */}
302300
</Card.Header>
303301
<div className='chart-container'>
304302
<ResponsiveContainer
@@ -350,7 +348,7 @@ const Dashboard = () => {
350348
<Card.Content>
351349
<Card.Header>
352350
{t('dashboard.charts.tokens.title')}
353-
<span className='stat-value'>{summaryData.todayTokens}</span>
351+
{/* <span className='stat-value'>{summaryData.todayTokens}</span> */}
354352
</Card.Header>
355353
<div className='chart-container'>
356354
<ResponsiveContainer

0 commit comments

Comments
 (0)