Skip to content

Commit

Permalink
hidden ephemery tab fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mateumiralles committed Oct 30, 2024
1 parent 8815a7d commit 32ea755
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions packages/admin-ui/src/pages/stakers/components/StakersRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
<Title title={title} />

<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">
Expand Down

0 comments on commit 32ea755

Please sign in to comment.