3
0
mirror of https://github.com/snipe/snipe-it.git synced 2025-12-01 11:30:10 +00:00

Merge pull request #15350 from marcusmoore/icon-component-updates

Fixed icon not rotated and simplified component
This commit is contained in:
snipe
2024-08-20 19:34:38 +01:00
committed by GitHub

View File

@ -2,9 +2,5 @@
@props([
'type' => '',
'class' => false,
'style' => false,
'id' => false,
'title' => false,
])
<i {{ $attributes->merge(['class' => Icon::icon($type).' '.$class]) }} {{ isset($style) ? $attributes->merge(['style' => $style]): '' }} {{ isset($title) ? $attributes->merge(['title' => $title]): '' }} aria-hidden="true"></i>
<i {{ $attributes->merge(['class' => Icon::icon($type)]) }} aria-hidden="true"></i>