Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Feb 5, 2025
1 parent cb39e39 commit 9500083
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 22 deletions.
4 changes: 2 additions & 2 deletions docs-assets/app/app/Livewire/Panels/Navigation/ActiveIcon.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Livewire\Panels\Navigation;

use Filament\Pages\Page;
use Filament\Navigation\NavigationItem;
use Filament\Pages\Page;

class ActiveIcon extends Page
{
Expand All @@ -22,7 +22,7 @@ public function mount()
NavigationItem::make('')
->label('Settings Active')
->url(fn (): string => '#')
->isActiveWhen(fn() => request()->path() === 'panels/navigation/active-icon')
->isActiveWhen(fn () => request()->path() === 'panels/navigation/active-icon')
->activeIcon('heroicon-s-cog')
->icon('heroicon-s-cog'),
]);
Expand Down
2 changes: 1 addition & 1 deletion docs-assets/app/app/Livewire/Panels/Navigation/Badge.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function mount()
->navigationItems([
NavigationItem::make()
->label('Orders')
->url(fn(): string => '#')
->url(fn (): string => '#')
->icon('heroicon-o-shopping-cart')
->badge(24),
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function mount()
->navigationItems([
NavigationItem::make()
->label('Orders')
->url(fn(): string => '#')
->url(fn (): string => '#')
->icon('heroicon-o-shopping-cart')
->badge(32, Color::Red),
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function mount()
->navigationItems([
NavigationItem::make()
->label('Users')
->url(fn(): string => '#')
->url(fn (): string => '#')
->icon('heroicon-o-user-group')
->badge(12)
->badgeTooltip('The number of users'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Livewire\Panels\Navigation;

use Filament\Pages\Page;
use Filament\Navigation\NavigationItem;
use Filament\Pages\Page;

class ChangeIcon extends Page
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace App\Livewire\Panels\Navigation;

use Filament\Pages\Page;
use Filament\Pages\Dashboard;
use Filament\Navigation\NavigationItem;
use Filament\Pages\Dashboard;
use Filament\Pages\Page;

class CustomItems extends Page
{
Expand Down
2 changes: 1 addition & 1 deletion docs-assets/app/app/Livewire/Panels/Navigation/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function mount()
->navigationItems([
NavigationItem::make()
->label('Bank Accounts')
->url(fn(): string => '#')
->url(fn (): string => '#')
->group('Settings')
->icon('heroicon-o-currency-dollar'),
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ public function mount()
filament()
->getCurrentPanel()
->navigationGroups([
NavigationGroup::make('Settings')->collapsed()
NavigationGroup::make('Settings')->collapsed(),
])
->navigationItems([
NavigationItem::make()
->label('Bank Accounts')
->url(fn(): string => '#')
->url(fn (): string => '#')
->group('Settings')
->icon('heroicon-o-currency-dollar'),
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ public function mount()
filament()
->getCurrentPanel()
->navigationGroups([
NavigationGroup::make('Settings')->collapsible(false)
NavigationGroup::make('Settings')->collapsible(false),
])
->navigationItems([
NavigationItem::make()
->label('Bank Accounts')
->url(fn(): string => '#')
->url(fn (): string => '#')
->group('Settings')
->icon('heroicon-o-currency-dollar'),
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Livewire\Panels\Navigation;

use Filament\Pages\Page;
use Filament\Navigation\NavigationItem;
use Filament\Pages\Page;

class SidebarCollapsibleOnDesktop extends Page
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Livewire\Panels\Navigation;

use Filament\Pages\Page;
use Filament\Navigation\NavigationItem;
use Filament\Pages\Page;

class SidebarFullyCollapsibleOnDesktop extends Page
{
Expand Down
6 changes: 3 additions & 3 deletions docs-assets/app/app/Livewire/Panels/Navigation/SortItems.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Livewire\Panels\Navigation;

use Filament\Pages\Page;
use Filament\Navigation\NavigationItem;
use Filament\Pages\Page;

class SortItems extends Page
{
Expand All @@ -16,13 +16,13 @@ public function mount()
->navigationItems([
NavigationItem::make()
->label('Products')
->badge("2")
->badge('2')
->sort(2)
->icon('heroicon-o-document-text')
->url(fn (): string => '#'),
NavigationItem::make('')
->label('Orders')
->badge("1")
->badge('1')
->sort(1)
->icon('heroicon-o-document-text')
->url(fn (): string => '#'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace App\Livewire\Panels\Navigation;

use Filament\Pages\Page;
use Filament\Pages\Dashboard;
use Filament\Navigation\NavigationItem;
use Filament\Pages\Dashboard;
use Filament\Pages\Page;

class TopNavigation extends Page
{
Expand Down
6 changes: 4 additions & 2 deletions packages/forms/resources/views/components/wizard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,12 +292,14 @@ class="h-full w-full text-gray-200 dark:text-white/5 rtl:rotate-180"
)
"
@endif
x-bind:class="{ 'hidden': isLastStep(), 'block': !isLastStep() }"
x-bind:class="{ 'hidden': isLastStep(), 'block': ! isLastStep() }"
>
{{ $nextAction }}
</span>

<span x-bind:class="{ 'hidden': !isLastStep(), 'block': isLastStep() }">
<span
x-bind:class="{ 'hidden': ! isLastStep(), 'block': isLastStep() }"
>
{{ $getSubmitAction() }}
</span>
</div>
Expand Down

0 comments on commit 9500083

Please sign in to comment.