Remove unused getTabsContentComponent method from ListSettings page: Streamlined the code by eliminating the method that managed tab content dynamically, as it was no longer necessary for the current implementation.

This commit is contained in:
Ümit Tunç
2025-10-29 17:34:02 -03:00
parent 50fff6332b
commit a30f3ce86a
@@ -5,8 +5,6 @@ namespace App\Filament\Admin\Resources\Settings\Pages;
use App\Filament\Admin\Resources\Settings\SettingResource; use App\Filament\Admin\Resources\Settings\SettingResource;
use App\Models\Setting; use App\Models\Setting;
use Filament\Actions\CreateAction; use Filament\Actions\CreateAction;
use Filament\Schemas\Components\Component;
use Filament\Schemas\Components\Tabs;
use Filament\Schemas\Components\Tabs\Tab; use Filament\Schemas\Components\Tabs\Tab;
use Filament\Resources\Pages\ListRecords; use Filament\Resources\Pages\ListRecords;
use Filament\Support\Enums\Width; use Filament\Support\Enums\Width;
@@ -70,18 +68,6 @@ class ListSettings extends ListRecords
return $tabs; return $tabs;
} }
public function getTabsContentComponent(): Component
{
$tabs = $this->getCachedTabs();
return Tabs::make()
->livewireProperty('activeTab')
->contained(false)
->tabs($tabs)
->vertical()
->hidden(empty($tabs));
}
protected function getGroupIcon(?string $group): string protected function getGroupIcon(?string $group): string
{ {
if (!$group) { if (!$group) {