change storageUsed => totalUploadsSize

This commit is contained in:
Karol Wypchlo 2021-04-08 12:35:47 +02:00
parent 987fa62c67
commit 26b3ec2cbc
2 changed files with 4 additions and 2 deletions

View File

@ -200,7 +200,7 @@ export default function Home({ plans }) {
<div className="ml-5 w-0 flex-1">
<dt className="text-sm font-medium text-gray-500 truncate">Storage used</dt>
<dd className="flex items-baseline">
<div className="text-2xl font-semibold text-grey-900">{prettyBytes(stats?.storageUsed ?? 0)}</div>
<div className="text-2xl font-semibold text-grey-900">{prettyBytes(stats?.totalUploadsSize ?? 0)}</div>
</dd>
</div>
</div>

View File

@ -83,7 +83,9 @@ export default function Payments({ plans, user: initialUserData, stats: initialS
<div className="bg-white overflow-hidden shadow rounded-lg">
<div className="px-4 py-5 sm:p-6">
<dt className="text-sm font-medium text-gray-500 truncate">Storage used</dt>
<dd className="mt-1 text-3xl font-semibold text-gray-900">{prettyBytes(stats.storageUsed)}</dd>
<dd className="mt-1 text-3xl font-semibold text-gray-900">
{prettyBytes(stats?.totalUploadsSize ?? 0)}
</dd>
</div>
</div>
</dl>