Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
marco76tv authored and github-actions[bot] committed May 24, 2024
1 parent fa6daf3 commit 6f83881
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Filament/Pages/Dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected function getHeaderWidgets(): array
// Widgets\TestChartWidget::make(['qid' => 6]),
// Widgets\StatsOverviewWidget::class,

Widgets\StatWithIconWidget::make(['label'=>'Unique views', 'value'=>'192.1k']),
Widgets\StatWithIconWidget::make(['label' => 'Unique views', 'value' => '192.1k']),
Widgets\TestWidget::make(['widgets' => $widgets]),
Widgets\TestWidget::make(['widgets' => $widgets]),
Widgets\TestWidget::make(['widgets' => $widgets]),
Expand Down
9 changes: 3 additions & 6 deletions Filament/Widgets/StatWithIconWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,24 @@

namespace Modules\UI\Filament\Widgets;

use Closure;
use Filament\Widgets\Widget as BaseWidget;
use Illuminate\Contracts\Support\Htmlable;

class StatWithIconWidget extends BaseWidget
{
protected static string $view = 'ui::filament.widgets.stat-with-icon';

protected string | Htmlable $label;
protected string|Htmlable $label;

/**
* @var scalar | Htmlable | Closure
* @var scalar|Htmlable|\Closure
*/
protected $value;




protected function getData(): array
{
dddx($this->label);

return [];
}
}

0 comments on commit 6f83881

Please sign in to comment.