Skip to content

Commit

Permalink
fix: menus error
Browse files Browse the repository at this point in the history
  • Loading branch information
secondnetwork authored Oct 24, 2023
1 parent 94550f6 commit ec0509e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/views/admin/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<li class="sidenav__list-item"><a wire:navigate @if(Route::is('admin.posts*')) class="active" @endif href="/admin/posts"><x-tabler-news class="icon-lg"/><span>{{ __('Posts') }}</span></a></li>
<li class="sidenav__list-item "><a wire:navigate @if(Route::is('admin.pages*')) class="active" @endif href="/admin/pages"><x-tabler-file-text class="icon-lg"/><span>{{ __('Pages') }}</span></a></li>

{{-- <livewire:adminmenu name="admin-sidebar-top"> --}}
<livewire:adminmenu name="admin-sidebar-top">


<li class="sidenav__list-item"><a wire:navigate @if(Route::is('admin.medialibrary')) class="active" @endif href="/admin/medialibrary"><x-tabler-photo-video class="icon-lg"/><span>{{ __('Media library') }}</span></a></li>
Expand Down
2 changes: 1 addition & 1 deletion src/Livewire/Frontend/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Menu extends Component
{
public $name;

public $menuitem;
public $menuitem = array();

public function mount($name = null)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Livewire/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Menu extends Component
{
public $name;

public $menuitem;
public $menuitem = array();

public function mount($name = null)
{
Expand Down

0 comments on commit ec0509e

Please sign in to comment.