CEC-2237 Track sign in and keys (#188)

This commit is contained in:
John Wu
2022-08-12 17:05:43 -07:00
committed by GitHub
parent 7bf91e0639
commit 59a8c934d6
2 changed files with 80 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ import { useStatusContext } from "../../Contexts/StatusContext";
import { LocalDateTimeString } from "../../../utils/dates";
import TableHeaderSortable from "../../Table/HeaderSortable";
import { logger } from "../../../services/monitoring";
import {useLocalStorage} from "../../useLocalStorage";
import { useLocalStorage } from "../../useLocalStorage";
const tableColumns = [
{
@@ -47,9 +47,17 @@ const tableColumns = [
id: "activated_at",
label: "Activated",
},
{
id: "signin_at",
label: "Sign In",
},
{
id: "keys_at",
label: "Keys",
},
];
const PAGE_SIZE="SUPPLIER_TABLE_PAGE_SIZE";
const PAGE_SIZE = "SUPPLIER_TABLE_PAGE_SIZE";
const SupplierTable = (props) => {
const { token, classes } = props;
@@ -137,6 +145,12 @@ const SupplierTable = (props) => {
<TableCell align="center">
{LocalDateTimeString(row.activated)}
</TableCell>
<TableCell align="center">
{LocalDateTimeString(row.signin_at)}
</TableCell>
<TableCell align="center">
{LocalDateTimeString(row.keys_at)}
</TableCell>
</TableRow>
);
})}