diff --git a/app/controllers/settings_controller.rb b/app/controllers/settings_controller.rb
index 85627a6..b083543 100644
--- a/app/controllers/settings_controller.rb
+++ b/app/controllers/settings_controller.rb
@@ -29,8 +29,9 @@ class SettingsController < ApplicationController
def set_settings_section
@settings_section = params[:section]
+ allowed_sections = [:profile, :account, :notifications]
- unless [:profile, :account].include?(@settings_section.to_sym)
+ unless allowed_sections.include?(@settings_section.to_sym)
redirect_to setting_path(:profile)
end
end
diff --git a/app/views/icons/_bell.html.erb b/app/views/icons/_bell.html.erb
index bba561c..3bb750f 100644
--- a/app/views/icons/_bell.html.erb
+++ b/app/views/icons/_bell.html.erb
@@ -1 +1 @@
-
\ No newline at end of file
+
diff --git a/app/views/settings/_notifications.html.erb b/app/views/settings/_notifications.html.erb
new file mode 100644
index 0000000..ff879d3
--- /dev/null
+++ b/app/views/settings/_notifications.html.erb
@@ -0,0 +1,16 @@
+
+ Lightning Wallet
+
+
+ <%= render FormElements::FieldsetComponent.new(
+ positioning: :horizontal,
+ title: "Sats received",
+ description: "Notify when sats are sent to my Lightning Address"
+ ) do %>
+ <%= select_tag :sats_received, options_for_select([
+ ["off", "off"],
+ ["Chat (Jabber)", "xmpp"]
+ ]) %>
+ <% end %>
+
+
diff --git a/app/views/shared/_sidenav_settings.html.erb b/app/views/shared/_sidenav_settings.html.erb
index d33c555..625e08c 100644
--- a/app/views/shared/_sidenav_settings.html.erb
+++ b/app/views/shared/_sidenav_settings.html.erb
@@ -7,5 +7,6 @@
active: current_page?(setting_path(:account))
) %>
<%= render SidenavLinkComponent.new(
- name: "Security", path: "#", icon: "shield", disabled: true
+ name: "Notifications", path: setting_path(:notifications), icon: "bell",
+ active: current_page?(setting_path(:notifications))
) %>