feat: added key id column

This commit is contained in:
Sheen Capadngan
2024-10-31 19:05:53 +08:00
parent 2bd817765c
commit 759d11ff21
@@ -220,7 +220,7 @@ export const CmekTable = () => {
<Table> <Table>
<THead> <THead>
<Tr className="h-14"> <Tr className="h-14">
<Th className="w-1/3"> <Th>
<div className="flex items-center"> <div className="flex items-center">
Name Name
<IconButton <IconButton
@@ -235,6 +235,7 @@ export const CmekTable = () => {
</IconButton> </IconButton>
</div> </div>
</Th> </Th>
<Th>Key ID</Th>
<Th>Algorithm</Th> <Th>Algorithm</Th>
<Th>Status</Th> <Th>Status</Th>
<Th>Version</Th> <Th>Version</Th>
@@ -242,7 +243,7 @@ export const CmekTable = () => {
</Tr> </Tr>
</THead> </THead>
<TBody> <TBody>
{isLoading && <TableSkeleton columns={4} innerKey="project-keys" />} {isLoading && <TableSkeleton columns={5} innerKey="project-keys" />}
{!isLoading && {!isLoading &&
keys.length > 0 && keys.length > 0 &&
keys.map((cmek) => { keys.map((cmek) => {
@@ -264,6 +265,7 @@ export const CmekTable = () => {
)} )}
</div> </div>
</Td> </Td>
<Td>{id}</Td>
<Td className="uppercase">{encryptionAlgorithm}</Td> <Td className="uppercase">{encryptionAlgorithm}</Td>
<Td> <Td>
<Badge variant={variant}>{label}</Badge> <Badge variant={variant}>{label}</Badge>