some final fixes before the demo
Some checks failed
checks-impure / test (pull_request) Successful in 2m4s
checks / test (pull_request) Failing after 8m51s

This commit is contained in:
sara-pervana
2023-12-12 14:02:43 +01:00
parent 2d8ac0cec9
commit 0cf025d529
22 changed files with 577 additions and 589 deletions

View File

@@ -0,0 +1,68 @@
import { Button } from "@mui/material";
export const Client1ConsumerTableConfig = [
{
key: "service_name",
label: "Service name",
},
{
key: "service_type",
label: "Service Type",
},
{
key: "endpoint_url",
label: "End Point",
render: (value: any) => {
return <Button disabled variant="outlined">Consume</Button>
}
},
{
key: "entity",
label: "Entity",
},
{
key: "entity_did",
label: "Entity DID",
},
{
key: "network",
label: "Network",
},
];
export const Client1ProducerTableConfig = [
{
key: "service_name",
label: "Service name",
},
{
key: "service_type",
label: "Service Type",
},
{
key: "endpoint_url",
label: "End Point",
},
{
key: "entity_did",
label: "Entity DID",
},
{
key: "status",
label: "Status",
},
{
key: "other",
label: "Action",
render: (value: any) => {
let renderedValue: any = '';
if (typeof value === "object")
renderedValue = (
<>
{value.action.map((actionType: string) => <><code>{actionType}</code><br /></>)}
</>
)
return renderedValue;
},
}
];