(ui) show key spend reports

This commit is contained in:
ishaan-jaff 2024-02-03 17:22:40 -08:00
parent be0cf9ff19
commit 33c4f0faae

View file

@ -6,6 +6,7 @@ import {
Badge,
Card,
Table,
Button,
TableBody,
TableCell,
TableHead,
@ -15,6 +16,7 @@ import {
Title,
Icon,
} from "@tremor/react";
import ViewKeySpendReport from "./view_key_spend_report";
// Define the props type
interface ViewKeyTableProps {
@ -110,9 +112,13 @@ const ViewKeyTable: React.FC<ViewKeyTableProps> = ({
<Icon
onClick={() => handleDelete(item.token)}
icon={TrashIcon}
size="xs"
size="sm"
/>
</TableCell>
<TableCell>
<ViewKeySpendReport token={item.token} accessToken={accessToken} keySpend={item.spend} keyBudget={item.max_budget} keyName={item.key_name} />
</TableCell>
</TableRow>
);
})}