make static analyse part

This commit is contained in:
2024-01-14 13:11:41 +03:00
parent 5e24ef3555
commit 38666bd460
29 changed files with 152 additions and 240 deletions

View File

@@ -5,14 +5,18 @@ namespace App\Livewire\Profile;
use App\Models\User;
use Asantibanez\LivewireCharts\Models\AreaChartModel;
use Livewire\Component;
use Illuminate\View\View;
class WeightChart extends Component
{
public User $user;
protected $listeners = ['weight-chart-updated' => '$refresh'];
protected function getListeners(): array
{
return ['weight-chart-updated' => '$refresh'];
}
public function render()
public function render(): View
{
$areaChartModel =
(new AreaChartModel())