From 336fee03a6dc26ad0874dfbd2405ce611e92c587 Mon Sep 17 00:00:00 2001 From: brianchennn Date: Sat, 23 Sep 2023 08:32:08 +0000 Subject: [PATCH] fix React Component's id naming style --- frontend/src/pages/SubscriberCreate.tsx | 46 +++++++++++++------------ 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/frontend/src/pages/SubscriberCreate.tsx b/frontend/src/pages/SubscriberCreate.tsx index 7a748801..ac618e3b 100644 --- a/frontend/src/pages/SubscriberCreate.tsx +++ b/frontend/src/pages/SubscriberCreate.tsx @@ -1116,6 +1116,7 @@ export default function SubscriberCreate() { const flowKey = toHex(snssai.sst) + snssai.sd; for (let i = 0; i < data.ChargingDatas!.length; i++) { const chargingData = data.ChargingDatas![i] + const idPrefix = snssai + "-" + dnn + "-" + chargingData.qosRef + "-" if (chargingData.snssai === flowKey && chargingData.dnn === dnn && chargingData.qosRef === flow.qosRef) { return ( @@ -1125,7 +1126,7 @@ export default function SubscriberCreate() { - + Charging Method @@ -1157,7 +1158,7 @@ export default function SubscriberCreate() { */} - + - + { const flowKey = toHex(snssai.sst) + snssai.sd; + const idPrefix = flowKey + "-" + dnn + "-" if (data.FlowRules !== undefined) { return ( data.FlowRules .filter((flow) => flow.dnn === dnn && flow.snssai === flowKey) .map((flow) => (
- +

Flow Rules {flow.qosRef}

@@ -1216,7 +1218,7 @@ export default function SubscriberCreate() {
- + - + - + - + - + - + - +
- + handleChangeSST(ev, index)} /> - + - + Default S-NSSAI @@ -1680,7 +1682,7 @@ export default function SubscriberCreate() {
{row.dnnConfigurations && Object.keys(row.dnnConfigurations!).map((dnn) => ( -
+
@@ -1703,7 +1705,7 @@ export default function SubscriberCreate() { - + @@ -1712,7 +1714,7 @@ export default function SubscriberCreate() { - + - + - + ))} - + - +