From 0d298bff9be760516bbdda24eb8a9bd314ef428f Mon Sep 17 00:00:00 2001 From: Max Wardeh Date: Fri, 22 Nov 2024 09:57:40 +0100 Subject: [PATCH] Fix profile show --- .../components/layouts/app.html.heex | 20 -------- .../components/layouts/root.html.heex | 22 +++++++++ .../live/profile_live/show.ex | 49 ++++++++++--------- lib/maker_passport_web/router.ex | 5 +- 4 files changed, 51 insertions(+), 45 deletions(-) diff --git a/lib/maker_passport_web/components/layouts/app.html.heex b/lib/maker_passport_web/components/layouts/app.html.heex index 67b3190..fc4d94c 100644 --- a/lib/maker_passport_web/components/layouts/app.html.heex +++ b/lib/maker_passport_web/components/layouts/app.html.heex @@ -1,26 +1,6 @@
<.flash_group flash={@flash} /> - <%= if @current_user && !@current_user.profile_complete do %> -
-
-
- - - - -
-
-

- Your profile is incomplete. - <.link navigate={~p"/profiles/#{@current_user.profile.id}"} class="font-medium underline hover:text-yellow-600"> - Complete your profile here - -

-
-
-
- <% end %> <%= @inner_content %>
diff --git a/lib/maker_passport_web/components/layouts/root.html.heex b/lib/maker_passport_web/components/layouts/root.html.heex index c8784dd..f2658a5 100644 --- a/lib/maker_passport_web/components/layouts/root.html.heex +++ b/lib/maker_passport_web/components/layouts/root.html.heex @@ -90,6 +90,28 @@