Skip to content

Commit 0d401e7

Browse files
committed
Adds default action icon value to config file
1 parent 14a7450 commit 0d401e7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

config/filament-comments.php

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* The icons that are used in the comments component.
1111
*/
1212
'icons' => [
13+
'action' => 'heroicon-s-chat-bubble-left-right',
1314
'delete' => 'heroicon-s-trash',
1415
'empty' => 'heroicon-s-chat-bubble-left-right',
1516
],

src/Actions/CommentsAction.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ protected function setUp(): void
2020

2121
$this
2222
->hiddenLabel()
23-
->icon('heroicon-s-chat-bubble-left-right')
23+
->icon(config('filament-comments.icons.action'))
2424
->color('gray')
2525
->badge($this->record->filamentComments()->count())
2626
->slideOver()

src/Tables/Actions/CommentsAction.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ protected function setUp(): void
2020
parent::setUp();
2121

2222
$this
23-
->icon('heroicon-s-chat-bubble-left-right')
23+
->icon(config('filament-comments.icons.action'))
2424
->label(__('filament-comments::filament-comments.comments'))
2525
->slideOver()
2626
->modalContentFooter(fn (Model $record): View => view('filament-comments::component', [

0 commit comments

Comments
 (0)