From c2785d014c6fac3a018f5794812bfc834af5caa2 Mon Sep 17 00:00:00 2001 From: Inhji Date: Tue, 4 Jul 2023 06:57:32 +0200 Subject: [PATCH] move logout button to profile --- lib/chiya_web/live/admin_home_live.ex | 8 -------- lib/chiya_web/live/user_profile_live.ex | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) 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 +