Skip to content

fix:[LAR-118] replace authentication variable with user and add avata… #232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions resources/views/livewire/discussions/add-comment.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
<div class="relative flex space-x-3">
<div class="flex-shrink-0">
<div class="relative">
<img
<x-user.avatar
:user="$user"
class="flex size-10 items-center justify-center rounded-full bg-skin-card-gray object-cover ring-8 ring-body"
src="{{ $authenticate->profile_photo_url }}"
alt="{{ $authenticate->name }}"
/>
<span class="absolute -bottom-0.5 -right-1 rounded-tl bg-skin-body px-0.5 py-px">
<svg
Expand Down Expand Up @@ -37,7 +36,7 @@ class="size-5 text-skin-muted"
id="body"
placeholder="{{ __('Laisser un commentaire, vous pouvez utilise du **Markdown**') }}"
rows="4"
:disabled="$authenticate === null"
:disabled="$user === null"
></textarea>
<div class="mt-4 sm:flex sm:items-center sm:justify-between sm:space-x-4">
@if ($isRoot)
Expand Down
Loading