Skip to content

Commit

Permalink
Remove sleep function from save function
Browse files Browse the repository at this point in the history
  • Loading branch information
Raccoon254 committed Jun 13, 2024
1 parent fcc37e5 commit f5b5657
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Livewire/ProfileImageUploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function mount($color): void

public function save(): void
{
sleep(1);

if (auth()->user()->profile_photo) {
$fullPath = Storage::path(auth()->user()->profile_photo);
// Replace the path to the storage folder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@
@method('patch')

<div class="bg-blue-500 p-4 rounded-md flex gap-4">
<livewire:profile-image-uploader :color="'blue-500'" />
<div class="w-1/3 mr-3">
<livewire:profile-image-uploader :color="'blue-500'" />
</div>
<div class="instructions center">
<div class="text-sm md:text-md text-white">
<div class="text-xs md:text-md text-white">
1. Click on the camera icon to upload a new profile picture.
<br>
2. Click on the checkmark icon to save the new profile picture.
Expand Down

0 comments on commit f5b5657

Please sign in to comment.