properly display username/emails of logged in user, and add logout button

This commit is contained in:
2022-02-22 17:32:45 -05:00
parent 8330bb420e
commit 3c9dd96d8b
7 changed files with 100 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
<section>
<%= react_component("Components.SplashPage") %>
<%= react_component("Components.SplashPage", %{ error: get_flash(@conn, :error) }) %>
<%= if @current_user do %>
<h2>Welcome, <%= @current_user.name %>!</h2>