refactor: replace inline journal timeline view with a dedicated Livewire component for improved performance and structure
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire;
|
||||
|
||||
use Livewire\Component;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class InternJournalTimeline extends Component
|
||||
{
|
||||
public ?Model $record = null;
|
||||
|
||||
public function getGithubRepoProperty(): ?string
|
||||
{
|
||||
return $this->record?->github_repo;
|
||||
}
|
||||
|
||||
public function render()
|
||||
{
|
||||
return view('livewire.intern-journal-timeline');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user