Skip to content

Commit 18a9809

Browse files
committed
fix: update navigation icon type to support BackedEnum in MyProfilePage
1 parent e27bf70 commit 18a9809

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,15 +244,15 @@ WirementBreezeCore::make()
244244

245245
#### Create custom My Profile components
246246

247-
In Breezy v2, you can now create custom Livewire components for the My Profile page and append them easily.
247+
In Wirement Breeze, you can now create custom Livewire components for the My Profile page and append them easily.
248248

249249
1. Create a new Livewire component in your project using:
250250

251251
```
252252
php artisan make:livewire MyCustomComponent
253253
```
254254

255-
2. Extend the `MyProfileComponent` class included with Breezy. This class implements Actions and Forms.
255+
2. Extend the `MyProfileComponent` class included with Wirement Breeze. This class implements Actions and Forms.
256256

257257
```php
258258
use Kwhorne\WirementBreeze\Livewire\MyProfileComponent;
@@ -300,7 +300,7 @@ class MyCustomComponent extends MyProfileComponent
300300

301301
```
302302

303-
3. Within your Livewire component's view, you can use Breezy's `grid-section` blade component to match the style:
303+
3. Within your Livewire component's view, you can use Wirement Breeze's `grid-section` blade component to match the style:
304304

305305
```blade
306306
<x-wirement-breeze::grid-section md=2 title="Your title" description="This is the description">
@@ -319,7 +319,7 @@ class MyCustomComponent extends MyProfileComponent
319319
</x-wirement-breeze::grid-section>
320320
```
321321

322-
4. Finally, register your new component with Breezy:
322+
4. Finally, register your new component with Wirement Breeze:
323323

324324
```php
325325
use App\Livewire\MyCustomComponent;
@@ -417,7 +417,7 @@ class User extends Authenticatable
417417
}
418418
```
419419

420-
2. Enable Two Factor Authentication using the `enableTwoFactorAuthentication()` method on the Breezy plugin.
420+
2. Enable Two Factor Authentication using the `enableTwoFactorAuthentication()` method on the Wirement Breeze plugin.
421421

422422
```php
423423
WirementBreezeCore::make()
@@ -430,7 +430,7 @@ WirementBreezeCore::make()
430430

431431
3. Adjust the 2FA page
432432

433-
The Breezy 2FA page can be swapped for a custom implementation (see above), same as the Filament auth pages. This allows, for example, to define a custom auth layout like so:
433+
The Wirement Breeze 2FA page can be swapped for a custom implementation (see above), same as the Filament auth pages. This allows, for example, to define a custom auth layout like so:
434434

435435
```php
436436
use Kwhorne\WirementBreeze\Pages\TwoFactorPage;

src/Pages/MyProfilePage.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
namespace Kwhorne\WirementBreeze\Pages;
44

5+
use BackedEnum;
56
use Filament\Pages\Page;
67
use Illuminate\Contracts\Support\Htmlable;
78

89
class MyProfilePage extends Page
910
{
10-
protected static ?string $navigationIcon = 'heroicon-o-document-text';
11+
protected static BackedEnum|string|null $navigationIcon = 'heroicon-o-document-text';
1112

1213
protected static string $view = 'wirement-breeze::filament.pages.my-profile';
1314

0 commit comments

Comments
 (0)