Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
marco76tv committed Sep 17, 2024
1 parent c36dbfc commit 145b12d
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions Filament/Forms/Components/IconPicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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';
Expand Down

0 comments on commit 145b12d

Please sign in to comment.