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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user