From 145b12d377b8f4046d555589515b7139fedf28d1 Mon Sep 17 00:00:00 2001 From: marco Date: Tue, 17 Sep 2024 18:06:13 +0200 Subject: [PATCH] up --- Filament/Forms/Components/IconPicker.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/Filament/Forms/Components/IconPicker.php b/Filament/Forms/Components/IconPicker.php index f8c6f719..5ac26113 100755 --- a/Filament/Forms/Components/IconPicker.php +++ b/Filament/Forms/Components/IconPicker.php @@ -19,20 +19,6 @@ protected function setUp(): void $icons = app(GetAllIconsAction::class)->execute(); - $opts_test = [ - 'heroicon-c-archive-box-x-mark' => 'heroicon-c-archive-box-x-mark', - 'heroicon-c-arrow-down' => 'heroicon-c-arrow-down', - 'heroicon-c-arrow-path' => 'heroicon-c-arrow-path', - 'ui-flags.af' => 'ui-flags.af', - ]; - // $opts = $icons['heroicons']['icons']; - // $opts = array_combine($opts, $opts); - // dddx([ - // 'icons' => $icons, - // 'icons_1' => $icons->toCollection()->keys()->toArray(), - // 'methods' => get_class_methods($icons), - // ]); - $packs = array_keys($icons); // $packs = $icons->toCollection()->keys()->toArray(); $packs = array_combine($packs, $packs); @@ -50,7 +36,7 @@ protected function setUp(): void RadioIcon::make('newstate') ->options(function (Get $get) use ($icons): array { $pack = $get('pack'); - if (null == $pack) { + if (! is_string($pack)) { return []; } $key = $pack.'.icons';