Skip to content

Commit e9be134

Browse files
committed
Update the insights sidebar link
1 parent 0006bf7 commit e9be134

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/nerves_hub_web/components/navigation.ex

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,7 @@ defmodule NervesHubWeb.Components.Navigation do
1515
def updated_sidebar(assigns) do
1616
~H"""
1717
<ul role="list">
18-
<.nav_link
19-
:if={Application.get_env(:nerves_hub, :insights_enabled)}
20-
label="Insights"
21-
path={~p"/org/#{@org.name}/#{@product.name}/insights"}
22-
selected={:insights == @selected_tab}
23-
width_and_height={24}
24-
>
18+
<.nav_link :if={Application.get_env(:nerves_hub, :insights_enabled)} label="Insights" path={~p"/org/#{@org}/#{@product}/insights"} selected={:insights == @selected_tab} width_and_height={24}>
2519
<path
2620
d="M21 12H22M18.5 5.5L19.5 4.5M12 3V2M5.5 5.5L4.5 4.5M3 12H2M10 22H14M17 12C17 9.23858 14.7614 7 12 7C9.23858 7 7 9.23858 7 12C7 14.0503 8.2341 15.8124 10 16.584V19H14V16.584C15.7659 15.8124 17 14.0503 17 12Z"
2721
stroke-width="1.2"

0 commit comments

Comments
 (0)