mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Rely on $attributes behavior rendering passed attributes
This commit is contained in:
parent
d99b306ae9
commit
bbdbec7197
|
@ -2,9 +2,6 @@
|
||||||
|
|
||||||
@props([
|
@props([
|
||||||
'type' => '',
|
'type' => '',
|
||||||
'class' => false,
|
|
||||||
'style' => false,
|
|
||||||
'id' => 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>
|
Loading…
Reference in a new issue