I am using navigation group and navigationitem but page was broken

public function panel(Panel $panel): Panel { return $panel ->default() ->id('admin') ->path('admin') ->login(Login::class) // ->databaseNotifications() ->navigationGroups([ NavigationGroup::make('Feedback') ->label('Feedback') ->icon('heroicon-o-shopping-cart'), ]) ->navigationItems([ NavigationItem::make('Feedback') ->icon('heroicon-o-presentation-chart-line') ->group('Feedback') ->sort(3), ])
->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\Filament\Widgets') ->widgets([ Widgets\AccountWidget::class, // Widgets\FilamentInfoWidget::class, ]) i am using navigationgroup and navigationitems icons but its not taking icons for both ,it was broken page like i attched kindly give me solution or give some advise any other option avilable in filament ...
No description
3 Replies
awcodes
awcodes9mo ago
The error is pretty clear you can’t have an icon on a group if any of the group items also have an icon. Either remove the icon from the group or remove it from the items
Hemanath
HemanathOP9mo ago
that was clear but we cant give for both in filament ...
awcodes
awcodes9mo ago
No, because the sidebar can be partially collapsed on desktop which uses the icons, having it on both would break that functionality. At least currently
Want results from more Discord servers?
Add your server