Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
AfonsoMartins26 committed Sep 26, 2024
1 parent 95cbd6a commit ad5460f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/atomic_web/live/profile_live/form_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ defmodule AtomicWeb.ProfileLive.FormComponent do
<!-- Grid layout for profile picture, name, phone number, email, and social media fields -->
<div class="grid grid-cols-1 gap-6 md:grid-cols-2">
<!-- Section for profile picture upload -->
<div class="flex flex-col items-center pr-4 ">
<div class="flex flex-col items-center pr-4">
<%= label(f, :name, "Profile Picture", class: "mt-3 mb-1 text-sm font-medium text-gray-700") %>
<.live_component module={ImageUploader} id="uploader-profile-picture" uploads={@uploads} target={@myself} />
</div>
Expand Down Expand Up @@ -51,7 +51,10 @@ defmodule AtomicWeb.ProfileLive.FormComponent do

{:ok,
socket
|> allow_upload(:image, accept: Uploaders.ProfilePicture.extension_whitelist(), max_entries: 1)
|> allow_upload(:image,
accept: Uploaders.ProfilePicture.extension_whitelist(),
max_entries: 1
)
|> assign(assigns)
|> assign(:changeset, changeset)}
end
Expand Down

0 comments on commit ad5460f

Please sign in to comment.