Skip to content

Commit 7705304

Browse files
authored
Always show Chain Infrastructure in sidebar regardless of subscriptions (#7883)
1 parent 557d42d commit 7705304

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/(team)/TeamSidebarLayout.tsx

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ export function TeamSidebarLayout(props: {
4040
icon: ChartNoAxesColumnIcon,
4141
label: "Analytics",
4242
},
43+
// ecosystem below here
44+
// TODO: make this one link to an overview page that has a list of all the ecosystems currently deployed
4345
{
4446
links: [
4547
...props.ecosystems.map((ecosystem) => ({
@@ -66,29 +68,28 @@ export function TeamSidebarLayout(props: {
6668
icon: DatabaseIcon,
6769
label: "Usage",
6870
},
69-
...(props.chainSubscriptions.length > 0
70-
? [
71-
{
72-
separator: true,
73-
} as const,
74-
{
75-
links: [
76-
...props.chainSubscriptions.map((chainSubscription) => ({
77-
href: `${layoutPath}/~/infrastructure/${chainSubscription.slug}`,
78-
label: chainSubscription.chainName,
79-
})),
80-
{
81-
href: `${layoutPath}/~/infrastructure/deploy`,
82-
label: "Deploy Infrastructure",
83-
},
84-
],
85-
subMenu: {
86-
icon: WalletCardsIcon,
87-
label: "Chain Infrastucture",
88-
},
89-
},
90-
]
91-
: []),
71+
72+
{
73+
separator: true,
74+
} as const,
75+
// infrastructure below here
76+
// TODO: make this one link to an overview page that has a list of all the chains currently deployed
77+
{
78+
links: [
79+
...props.chainSubscriptions.map((chainSubscription) => ({
80+
href: `${layoutPath}/~/infrastructure/${chainSubscription.slug}`,
81+
label: chainSubscription.chainName,
82+
})),
83+
{
84+
href: `${layoutPath}/~/infrastructure/deploy`,
85+
label: "Deploy Infrastructure",
86+
},
87+
],
88+
subMenu: {
89+
icon: WalletCardsIcon,
90+
label: "Chain Infrastucture",
91+
},
92+
},
9293
]}
9394
footerSidebarLinks={[
9495
{

0 commit comments

Comments
 (0)