From 32ea755ad3f4c4b2b805155875d01e486b30d375 Mon Sep 17 00:00:00 2001 From: mateumiralles Date: Wed, 30 Oct 2024 09:42:49 +0100 Subject: [PATCH] hidden ephemery tab fix --- .../pages/stakers/components/StakersRoot.tsx | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/packages/admin-ui/src/pages/stakers/components/StakersRoot.tsx b/packages/admin-ui/src/pages/stakers/components/StakersRoot.tsx index b511010ae..d5c110a71 100644 --- a/packages/admin-ui/src/pages/stakers/components/StakersRoot.tsx +++ b/packages/admin-ui/src/pages/stakers/components/StakersRoot.tsx @@ -74,25 +74,21 @@ const StakersRoot: React.FC = () => { ]; // Remove the "Prater" tab from the stakersItems array - const filteredStakersItems = stakersItems.filter((item) => item.subPath !== "prater"); - + // hide "ephemery" tab until clients and pkgs are published + const filteredStakersItems = stakersItems.filter((item) => item.subPath !== "prater" && item.subPath !== "ephemery"); return ( <> <div className="horizontal-navbar"> - {/* Render the staker tabs, excluding "Prater" which is hidden due to deprecation */} - {filteredStakersItems.map( - (route) => - // hide "ephemery" tab until clients and pkgs are published - route.subPath !== "ephemery" && ( - <button key={route.subPath} className="item-container"> - <NavLink to={route.subPath} className="item no-a-style" style={{ whiteSpace: "nowrap" }}> - {route.title} - </NavLink> - </button> - ) - )} + {/* Render the staker tabs, excluding "Prater" which is hidden due to deprecation and "Ephemery"*/} + {filteredStakersItems.map((route) => ( + <button key={route.subPath} className="item-container"> + <NavLink to={route.subPath} className="item no-a-style" style={{ whiteSpace: "nowrap" }}> + {route.title} + </NavLink> + </button> + ))} </div> <div className="section-spacing">