[Entities] C2 Producer View Table - create and add data to the producer table

This commit is contained in:
Arslan, Erdem
2023-11-24 00:30:09 +01:00
parent 2b590e9531
commit 0cea4644c3
2 changed files with 72 additions and 1 deletions

View File

@@ -4,6 +4,8 @@ import SummaryDetails from "@/components/summary_card";
import {
Client2ConsumerData,
Client2ConsumerTableConfig,
Client2ProducerData,
Client2ProducerTableConfig,
Client2SummaryDetails
} from "@/mock/client_2";
import CustomTable from "@/components/table";
@@ -26,6 +28,13 @@ export default function Client1() {
configuration={Client2ConsumerTableConfig}
/>
</div>
<div>
<h4>Producer View</h4>
<CustomTable
data={Client2ProducerData}
configuration={Client2ProducerTableConfig}
/>
</div>
</div>
);
}

View File

@@ -76,3 +76,65 @@ export const Client2ConsumerTableConfig = [
label: "Network"
}
]
export const Client2ProducerData = [
{
"service_name": "Carlo's Printing",
"service_type": "3D Printing",
"end_point": "URL",
"usage": "C1(3), C3(4)",
"status": "DRAFT, REGISTERED",
"action": "Register, Deregister, Delete",
},
{
"service_name": "Steve's Printing",
"service_type": "3D Printing",
"end_point": "URL",
"usage": "C1(3), C3(4)",
"status": "REGISTERED",
"action": "Create",
},
{
"service_name": "Test Printing A",
"service_type": "3D Printing",
"end_point": "URL",
"usage": "C1(3), C3(4)",
"status": "DRAFT",
"action": "Register, Deregister",
},
{
"service_name": "Test Printing B",
"service_type": "3D Printing",
"end_point": "URL",
"usage": "C1(3), C3(4)",
"status": "DRAFT, REGISTERED",
"action": "Delete, Create",
},
]
export const Client2ProducerTableConfig = [
{
key: "service_name",
label: "Service name"
},
{
key: "service_type",
label: "Service Type"
},
{
key: "end_point",
label: "End Point"
},
{
key: "usage",
label: "Usage"
},
{
key: "status",
label: "Status"
},
{
key: "action",
label: "Action"
}
]