Skip to content

Commit 72624a8

Browse files
committed
fix: disambiguate org tabs
1 parent 2f0b44a commit 72624a8

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

lib/algora_web/live/org/nav.ex

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ defmodule AlgoraWeb.Org.Nav do
4040
defp handle_active_tab_params(_params, _url, socket) do
4141
active_tab =
4242
case {socket.view, socket.assigns.live_action} do
43-
{AlgoraWeb.Org.DashboardLive, _} -> :dashboard
43+
{AlgoraWeb.Org.DashboardLive, _} -> :quickstart
44+
{AlgoraWeb.Org.DashboardPublicLive, _} -> :home
4445
{AlgoraWeb.Org.BountiesLive, _} -> :bounties
4546
{AlgoraWeb.Org.ProjectsLive, _} -> :projects
4647
{AlgoraWeb.Project.ViewLive, _} -> :projects
@@ -59,9 +60,15 @@ defmodule AlgoraWeb.Org.Nav do
5960
items: [
6061
%{
6162
href: "/org/#{org_handle}",
62-
tab: :dashboard,
63+
tab: :quickstart,
64+
icon: "tabler-sparkles",
65+
label: "Quickstart"
66+
},
67+
%{
68+
href: "/org/#{org_handle}/home",
69+
tab: :home,
6370
icon: "tabler-home",
64-
label: "Dashboard"
71+
label: "Home"
6572
},
6673
%{
6774
href: "/org/#{org_handle}/bounties",

0 commit comments

Comments
 (0)