-
-
- {getType(usage.workspaceType)}
-
-
-
- {usage.workspaceClass}
-
-
-
- {getHours(
- usage.endTime ? new Date(usage.endTime).getTime() : undefined,
- new Date(usage.startTime).getTime(),
- )}
-
-
-
- {usage.credits.toFixed(1)}
-
-
-
- {moment(new Date(usage.startTime).toDateString()).fromNow()}
-
-
-
-
+ <>
+
+
+
+
+
+
+
+
Total usage
+
+
+
{calculateTotalUsage()} Total Credits
+
+
- ))}
-
-
+
+
All Usage
+
View usage details of all team members.
+
+ -
+
+ Type
+
+
+ Class
+
+
+ Usage
+
+
+
+ Credits
+
+
+
+ {currentPaginatedResults.map((usage) => (
+
+
+ {getType(usage.workspaceType)}
+
+
+ {usage.workspaceClass}
+
+
+ {getMinutes(usage)}
+
+
+ {usage.credits.toFixed(1)}
+
+
+
+ {moment(new Date(usage.startTime).toDateString()).fromNow()}
+
+
+
+ ))}
+
+ {billedUsage.length > resultsPerPage && (
+
+ )}
+
+
+
+ >
);
}
diff --git a/components/dashboard/src/workspaces/Workspaces.tsx b/components/dashboard/src/workspaces/Workspaces.tsx
index 99065e0e2e3a1f..e4758fb9bcbdd6 100644
--- a/components/dashboard/src/workspaces/Workspaces.tsx
+++ b/components/dashboard/src/workspaces/Workspaces.tsx
@@ -158,7 +158,7 @@ export default function () {
className="flex cursor-pointer py-6 px-6 flex-row text-gray-400 bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 rounded-xl mb-2"
>
@@ -168,7 +168,7 @@ export default function () {
- Workspaces that have been stopped for more than 24 hours. Inactive
+ Workspaces that have been stopped for more than 24 hours. Inactive
workspaces are automatically deleted after 14 days.{" "}