diff --git a/lib/chiya_web/live/admin_home_live.ex b/lib/chiya_web/live/admin_home_live.ex index ea6bb37..8009ed0 100644 --- a/lib/chiya_web/live/admin_home_live.ex +++ b/lib/chiya_web/live/admin_home_live.ex @@ -51,14 +51,6 @@ defmodule ChiyaWeb.AdminHomeLive do <.link href={~p"/user"}> <.button>Profile - <.link - href={~p"/user/log_out"} - method="delete" - data-confirm="Do you want to logout?" - class="text-sm leading-6 text-gray-900 dark:text-gray-100 dark:hover:text-gray-300 hover:text-gray-700" - > - <.button>Log out - diff --git a/lib/chiya_web/live/user_profile_live.ex b/lib/chiya_web/live/user_profile_live.ex index 1b9ac17..b90d28a 100644 --- a/lib/chiya_web/live/user_profile_live.ex +++ b/lib/chiya_web/live/user_profile_live.ex @@ -9,6 +9,14 @@ defmodule ChiyaWeb.UserProfileLive do <.link href={~p"/user/settings"}> <.button>Edit User + <.link + href={~p"/user/log_out"} + method="delete" + data-confirm="Do you want to logout?" + class="text-sm leading-6 text-gray-900 dark:text-gray-100 dark:hover:text-gray-300 hover:text-gray-700" + > + <.button>Log out +