Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 committed Apr 24, 2024
1 parent 891282b commit cd0fd9f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/views/livewire/dashboard/pages/content.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<x-wireuse::layout-page>
<x-wireuse::navigation-tabs :$navigation wire:model.live="tab" />
<x-wireuse::navigation-tabs :$navigation />
</x-wireuse::layout-page>
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ protected function tabs(): Navigation
{
return Navigation::make()
->active($this->tab)
->add('videos', fn (NavigationItem $item) => $item->label(__('Videos')))
->add('tags', fn (NavigationItem $item) => $item->label(__('Tags')));
->add('videos', fn (NavigationItem $item) => $item
->label(__('Videos'))
->wireModel('tab')
)
->add('tags', fn (NavigationItem $item) => $item
->label(__('Tags'))
->wireModel('tab')
);
}
}

0 comments on commit cd0fd9f

Please sign in to comment.