From df885f63e0b6bffbdceeba5da9aca16f343fb79c Mon Sep 17 00:00:00 2001 From: leandrofars Date: Wed, 30 Oct 2024 13:24:04 -0300 Subject: [PATCH] fix(frontend): devices pages title + router redirect + usp page styling --- frontend/src/pages/devices/cwmp/[...id].js | 25 ++++++++++++++-------- frontend/src/pages/devices/usp/[...id].js | 4 ++-- frontend/src/pages/index.js | 2 +- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/frontend/src/pages/devices/cwmp/[...id].js b/frontend/src/pages/devices/cwmp/[...id].js index b30ac99..2047b32 100644 --- a/frontend/src/pages/devices/cwmp/[...id].js +++ b/frontend/src/pages/devices/cwmp/[...id].js @@ -31,10 +31,10 @@ const Page = () => { switch(section){ case "msg": return - case "wifi": - return + /* case "wifi": + return */ default: - router.push(`/devices/cwmp/${deviceID}/wifi`) + router.replace(`/devices/cwmp/${deviceID}/msg`) } } @@ -42,7 +42,7 @@ const Page = () => { <> - Oktopus | TR-369 + Oktopus | Controller { py: 0, }} > - - - + + + {[ Devices , @@ -71,13 +71,16 @@ const Page = () => { display:'flex', justifyContent:'center', }}> - + + } iconPosition={"end"} label="Wi-Fi" onClick={()=>{router.push(`/devices/cwmp/${deviceID}/wifi`)}} - value={"wifi"}/> + value={"wifi"} + disabled + /> } @@ -127,6 +130,10 @@ const Page = () => { label="Remote Messages" /> + + + + { sectionHandler() } diff --git a/frontend/src/pages/devices/usp/[...id].js b/frontend/src/pages/devices/usp/[...id].js index 22a7f35..a42bd41 100644 --- a/frontend/src/pages/devices/usp/[...id].js +++ b/frontend/src/pages/devices/usp/[...id].js @@ -39,7 +39,7 @@ const Page = () => { case "discovery": return default: - router.push(`/devices/usp/${deviceID}/discovery`) + router.replace(`/devices/usp/${deviceID}/discovery`) } } @@ -47,7 +47,7 @@ const Page = () => { <> - Oktopus | TR-369 + Oktopus | Controller { <> - Oktopus | TR-369 + Oktopus | Controller