mirror of
https://github.com/NyaaStudios/nyaabooru.git
synced 2025-12-09 21:42:57 +00:00
i hope this works
This commit is contained in:
parent
b04a0daf38
commit
41eb81de76
5 changed files with 14 additions and 10 deletions
|
|
@ -7,16 +7,12 @@ use Livewire\Component;
|
|||
|
||||
class Pfp extends Component
|
||||
{
|
||||
public string $user = '';
|
||||
public User $user;
|
||||
public string $size = '3rem';
|
||||
public string $shape = 'circle';
|
||||
|
||||
public function render()
|
||||
{
|
||||
$u = User::find($this->user);
|
||||
return view('livewire.app.pfp', [
|
||||
'pfp' => $u->getAvatarBase64(),
|
||||
'name' => $u->name,
|
||||
]);
|
||||
return view('livewire.app.pfp');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue