Skip to content

Commit b0832eb

Browse files
authored
chore: remove scanner from sidebar (#575)
1 parent e2b50d5 commit b0832eb

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

lib/atomic_web/config.ex

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,10 @@ defmodule AtomicWeb.Config do
1616
if has_permissions?(current_user, current_organization) do
1717
admin_pages(current_organization)
1818
else
19-
user_pages()
19+
default_pages()
2020
end
2121
end
2222

23-
def user_pages do
24-
default_pages() ++
25-
[
26-
%{
27-
key: :scanner,
28-
title: "Scanner",
29-
icon: "hero-qr-code",
30-
url: ~p"/scanner",
31-
tabs: []
32-
}
33-
]
34-
end
35-
3623
def admin_pages(current_organization) do
3724
default_pages() ++
3825
[
@@ -56,13 +43,6 @@ defmodule AtomicWeb.Config do
5643
icon: "hero-user-group",
5744
url: ~p"/organizations/#{current_organization}/partners",
5845
tabs: []
59-
},
60-
%{
61-
key: :scanner,
62-
title: "Scanner",
63-
icon: "hero-qr-code",
64-
url: ~p"/scanner",
65-
tabs: []
6646
}
6747
]
6848
end

0 commit comments

Comments
 (0)