diff --git a/pkgs/ui/src/components/sequence_diagram/index.tsx b/pkgs/ui/src/components/sequence_diagram/index.tsx index 6b4500d..43d29f3 100644 --- a/pkgs/ui/src/components/sequence_diagram/index.tsx +++ b/pkgs/ui/src/components/sequence_diagram/index.tsx @@ -133,7 +133,7 @@ const SequenceDiagram = () => {
- {label} {info}
-
- );
+ if (Array.isArray(value.data)) {
+ renderedValue = value.data.join(", ");
+ } else {
+ console.error("Status is not an array", value);
}
return renderedValue;
},
},
+ // {
+ // key: "other",
+ // label: "Type",
+ // render: (value: any) => {
+ // let renderedValue: any = "";
+ // if (typeof value === "object") {
+ // const label = Object.keys(value)[0];
+ // const info = value[label];
+ // renderedValue = (
+ //
+ // {label} {info}
+ //
+ // );
+ // }
+ // return renderedValue;
+ // },
+ // },
];
diff --git a/pkgs/ui/src/config/client_1/index.tsx b/pkgs/ui/src/config/client_1/index.tsx
index d467d38..e1ad33e 100644
--- a/pkgs/ui/src/config/client_1/index.tsx
+++ b/pkgs/ui/src/config/client_1/index.tsx
@@ -1,4 +1,7 @@
-import { Button } from "@mui/material";
+import { Button, IconButton, Tooltip } from "@mui/material";
+import AddCircleIcon from "@mui/icons-material/AddCircle";
+import RemoveCircleIcon from "@mui/icons-material/RemoveCircle";
+import DeleteIcon from "@mui/icons-material/Delete";
export const ClientTableConfig = [
{
@@ -51,6 +54,24 @@ export const ServiceTableConfig = [
key: "entity_did",
label: "Entity DID",
},
+ {
+ key: "usage",
+ label: "Usage",
+ render: (value: any) => {
+ let renderedValue = "";
+
+ if (value.length > 0) {
+ renderedValue = value.map((item: any, index: number) => {
+ return (
+