diff --git a/lib/mv_web/components/layouts.ex b/lib/mv_web/components/layouts.ex index b109b25..1495bb1 100644 --- a/lib/mv_web/components/layouts.ex +++ b/lib/mv_web/components/layouts.ex @@ -86,38 +86,4 @@ defmodule MvWeb.Layouts do """ end - - @doc """ - Provides dark vs light theme toggle based on themes defined in app.css. - - See in root.html.heex which applies the theme before page load. - """ - def theme_toggle(assigns) do - ~H""" -
-
- - - - - - -
- """ - end end diff --git a/lib/mv_web/components/layouts/navbar.ex b/lib/mv_web/components/layouts/navbar.ex index ca87d98..b917ddc 100644 --- a/lib/mv_web/components/layouts/navbar.ex +++ b/lib/mv_web/components/layouts/navbar.ex @@ -4,7 +4,6 @@ defmodule MvWeb.Layouts.Navbar do """ use Phoenix.Component use Gettext, backend: MvWeb.Gettext - import MvWeb.Layouts def navbar(assigns) do ~H""" @@ -24,7 +23,37 @@ defmodule MvWeb.Layouts.Navbar do - <.theme_toggle /> + +