diff --git a/frontend/src/components/BillingModal.jsx b/frontend/src/components/BillingModal.jsx index fa765c3..0b4c499 100644 --- a/frontend/src/components/BillingModal.jsx +++ b/frontend/src/components/BillingModal.jsx @@ -18,15 +18,6 @@ const TABS = [ { id: 'events', label: 'Event log', icon: FiList }, ]; -const formatBytes = (n) => { - n = Number(n || 0); - if (n <= 0) return '0 B'; - const u = ['B', 'KB', 'MB', 'GB', 'TB']; - let i = 0; - while (n >= 1024 && i < u.length - 1) { n /= 1024; i++; } - return `${n.toFixed(n >= 10 || i === 0 ? 0 : 1)} ${u[i]}`; -}; - const currentYm = () => { const d = new Date(); return `${d.getUTCFullYear()}-${String(d.getUTCMonth() + 1).padStart(2, '0')}`; @@ -353,9 +344,8 @@ const VolumeView = ({ volume, domain, ymFilter }) => {
{domain} ยท {monthLabel}
-
+
- { Mailbox Sent - Size Bounces Complaints @@ -403,7 +392,6 @@ const VolumeView = ({ volume, domain, ymFilter }) => {
{v.send_count.toLocaleString()} - {formatBytes(v.bytes_total)} 0 ? 'text-amber-700' : 'text-gray-400'}`}> {v.bounce_count.toLocaleString()}