diff --git a/lib/atomic_web/live/profile_live/show.html.heex b/lib/atomic_web/live/profile_live/show.html.heex index 3b749ec2..f0c24828 100644 --- a/lib/atomic_web/live/profile_live/show.html.heex +++ b/lib/atomic_web/live/profile_live/show.html.heex @@ -31,24 +31,34 @@ <% end %> -
-
- TikTok - <.link class="text-blue-500">Tik Tok + <%= if @user.socials do %> +
+ <%= if @user.socials.tiktok do %> +
+ TikTok + <.link class="text-blue-500" href={"https://tiktok.com/" <> @user.socials.tiktok}>Tik Tok +
+ <% end %> + <%= if @user.socials.instagram do %> +
+ Instagram + <.link class="text-blue-500" href={"https://instagram.com/" <> @user.socials.instagram}>Instagram +
+ <% end %> + <%= if @user.socials.facebook do %> +
+ Facebook + <.link class="text-blue-500" href={"https://facebook.com/" <> @user.socials.facebook}>Facebook +
+ <% end %> + <%= if @user.socials.x do %> +
+ X + <.link class="text-blue-500" href={"https://x.com/" <> @user.socials.x}>X +
+ <% end %>
-
- Instagram - <.link class="text-blue-500">Instagram -
-
- Facebook - <.link class="text-blue-500">Facebook -
-
- X - <.link class="text-blue-500">X -
-
+ <% end %>
<%= if @user.email do %>