Skip to content

Commit bd1fada

Browse files
committed
add customisable icon support for all icons
1 parent 1ded10c commit bd1fada

File tree

3 files changed

+23
-8
lines changed

3 files changed

+23
-8
lines changed

resources/views/livewire/translation-edit-form.blade.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ class="{{
7373
</form>
7474
<div class="flex items-center align-center">
7575
<button @click="closeWithCancel">
76-
<x-heroicon-o-x-mark class="w-5 h-5 text-danger-500"/>
76+
<x-filament::icon
77+
alias="filament-chained-translation-manager::cancel-translation"
78+
icon="heroicon-o-x-mark"
79+
class="w-5 h-5 text-danger-500"/>
7780
</button>
7881
</div>
7982
</div>

resources/views/pages/translation-manager-page.blade.php

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,30 @@
77
<div class="grow">
88
{{ $this->form }}
99
</div>
10-
<x-filament::button type="submit"
11-
icon="heroicon-o-funnel"
12-
class="flex-0 ml-4">
10+
<x-filament::icon-button type="submit"
11+
alias="filament-chained-translation-manager::filter-translations"
12+
icon="heroicon-o-funnel"
13+
class="flex-0 ml-4">
1314
@lang('filament-translation-manager::messages.filter_action')
14-
</x-filament::button>
15+
</x-filament::icon-button>
1516
</div>
1617
</form>
1718
</div>
1819
<div class="flex">
19-
<span><x-dynamic-component :component="'heroicon-o-funnel'" class="h-6 w-5 pt-1 mr-2"/></span>
20+
<span>
21+
<x-filament::icon
22+
alias="filament-chained-translation-manager::filter-translations"
23+
icon="heroicon-o-funnel"
24+
class="h-6 w-5 pt-1 mr-2"/>
25+
</span>
2026
<span>@lang('filament-translation-manager::messages.filter_results', ['filtered' => $totalFilteredTranslations, 'total' => $totalTranslations])</span>
2127
@if($totalFilteredTranslations > 0)
22-
<span><x-dynamic-component :component="'heroicon-o-exclamation-circle'" class="h-6 w-5 pt-1 mr-2 ml-2"/></span>
28+
<span>
29+
<x-filament::icon
30+
alias="filament-chained-translation-manager::missing-translations"
31+
icon="heroicon-o-exclamation-circle"
32+
class="h-6 w-5 pt-1 mr-2 ml-2"/>
33+
</span>
2334
<span>@lang('filament-translation-manager::messages.filter_results_missing_translations', ['missing' => $totalMissingFilteredTranslations,
2435
'percent' => number_format(($totalMissingFilteredTranslations / $totalFilteredTranslations) * 100, 0)])</span>
2536
@endif
@@ -43,6 +54,7 @@ class="flex-0 ml-4">
4354
@if($pageCounter > 1)
4455
<x-filament::icon-button
4556
:label="__('filament-translation-manager::messages.previous_page')"
57+
alias="filament-chained-translation-manager::next-previous"
4658
icon="heroicon-o-chevron-left"
4759
class="ml-4 -mr-1"
4860
wire:click="previousPage" />
@@ -51,6 +63,7 @@ class="ml-4 -mr-1"
5163
@if($totalFilteredTranslations > $pagedTranslations)
5264
<x-filament::icon-button
5365
:label="__('filament-translation-manager::messages.next_page')"
66+
alias="filament-chained-translation-manager::next-page"
5467
icon="heroicon-o-chevron-right"
5568
class="ml-4 -mr-1"
5669
wire:click="nextPage" />

resources/views/widgets/translation-status.blade.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
'flex items-center space-x-2 rtl:space-x-reverse text-sm font-medium text-gray-500',
66
'dark:text-gray-200' => config('filament.dark_mode'),
77
])>
8-
<x-dynamic-component :component="'heroicon-o-language'" class="w-4 h-4" />
98
<span>Translation manager</span>
109
</div>
1110
<div class="text-sm flex space-x-2 rtl:space-x-reverse">

0 commit comments

Comments
 (0)